The handkerchief code (also known as the hanky code, the bandana code, and flagging) is a system of color-coded cloth handkerchief or bandanas for non-verbally communicating one's interests in sexual activities and fetishes. The color of the handkerchief identifies a particular activity, and the pocket it is worn in (left or right) identifies the wearer's preferred role in that activity. Wearing a handkerchief on the left side of the body typically indicates one is a "top" (considered active in the act/fetish indicated by the color of the handkerchief) while wearing it on the right side of the body would indicate one is a "bottom" (considered passive in it). For example, a dark blue handkerchief indicates an interest in anal sex, and wearing it in the left pocket indicates a preference for being the penetrating partner. The code was most widely used in the 1970s in the United States, Canada, Australia, and Europe, by gay and bisexual men seeking casual sex or BDSM practitioners.