In one album of De Rode Ridder ("The Red Knight", a Belgian comic), a villain tricks the hero into swearing an oath not to use his sword against him. The Red Knight, being The Fettered, is honor-bound to keep it, even when the villain eventually attacks. He circumvents it by giving his sword to his female sidekick, who is not bound by the oath and still carries a grudge against the villain for a Kick the Dog moment earlier in the album. The results are... messy.
Subverted in an issue of Spider-Man; Spidey is riding on top of a car as it drives through New York (with the driver's consent). A cop pulls up next to them.
Spider-Man: Bet you a buck this isn't covered by traffic regulations. (Next panel, Spidey is holding a citation) Spider-Man: Huh. It is. Who knew?
This is subverted in a Powerpuff Girls comic. When Mojo Jojo tells Fuzzy Lumpkins that a high-tech weapon that landed on Fuzzy's yard is his, Fuzzy says, "I don't see your name on it!" (The same thing he said to the Girls when they tried to get it.) Mojo responds by turning it around; his name is on it. (Fuzzy decides to stop using loopholes and just threaten him at that point.)
A Desperate Dan comic in The Dandy has him deliver a grand piano to a friend, so he oils the castors, gives it a push and "drives" it down a motorway. On passing a police car, one of the policemen comments that there is nothing in the rulebook about a piano needing an M.O.T.
In Judge Dredd, the most popular Mayor of Mega City One was Dave the Orangutan — put forward by the Judges in an apparent attempt to discredit democracy since there was no specific rule against it. He was so popular that after he was assassinated the post was abolished for ten years due to the public feeling that no one could replace him.
Invoked by Scrooge McDuck in Don Rosa's story "The Guardians Of The Lost Library". Unfortunately for him, it doesn't work.
Referee: Are you nuts? You can't conduct an archeological excavation in the middle of a soccer championship! Scrooge: Oh, so? Show me that rule in the rulebook! Assistant: Gosh, he's right! It is allowed by the "King Tut" rule of 1922! Referee: No, the rule was voided after it resulted in a curse on whosoever dared enter the locker room!
In Green Lantern, this is used by the rulemakers themselves. The Guardians sent a Green Lantern to a particularly nasty planet and he is almost immediately killed, so the Green Lantern sends his ring out to find a worthy successor. Enter Jack T. Chance. After "taking care" of a prominent threat on the planet, he is called back to Oa by the Guardians for discipline, but Jack says that he did what he had to do and would rather quit than be bound by the rules of the Guardians. The Guardians, lacking a suitable replacement for Jack, stated that a Green Lantern was not required to be nice and gave him back the ring with provisions that it could not be used off of the planet Jack was stationed. The reason the Guardians were so annoyed with Chance was because of his own Loophole Abuse. Green Lantern Rings couldn't be used to make lethal attacks, so once Jack discovered this, he would use his ring to battle foes to the point of exhaustion - and then shoot them.
Used for laughs in the Young JusticeNo Man's Land special. Robin is depressed about being banned from helping Batman. Superboy points out that Bats never said anything about YJ steering clear of Gotham. So he and Impulse go on a ROAD TRIP!
Lex Luthor once made a deal with Mxyzptlk where Mxy would provide Luthor with the means to render Superman powerless. Part of the deal was that Luthor must never tell Superman about Mxy's role in this. Not enjoying the idea of being unable to let Superman know how he defeated him, Luthor tried to circumvent that part of the deal by telling someone who would tell Superman about the deal. Luthor then told Clark Kent.
In the fantasy comic strip Yamara, a toad familiar is tasked with bringing a newly-revived ex-vampire her first non-blood meal in centuries. The cleric forbids him from serving her meat, while another character threatens him with punishment if he offers her fruits or vegetables. His solution is to serve her cream of mushroom soup.
In "Marriage Vows" in The Haunt of Fear #15 the heroine wanted to marry one Prince Dashing but was hampered by the fact that her father had promised her hand in marriage to the ruler of a neighboring kingdom in exchange for a big fat loan. Let's just say that she found a way to take that promise very literally...
In Sgt. Rock: A Peace on Earth, Sgt. Rock and a German soldier drink, smoke, and chat casually on Christmas Eve, 1944. Then the German warns him that he was ordered to shoot on sight, "...and I always follow orders." "Same here," says Rock, and they both shoot... into the air.
Back in the '80s (it was a retcon) I made a deal with a demon named Vetis to get Iron Man to drink. How'd I get out of it? I sucker-punched Stark, stole his armor, and got drunk in it! I never did get my payment of a laser disc factory, though.
In New Mutants, Magik, being who she is, is told by her teammates not to kill someone... She proceeds to send said person to Hell.
Contrary to his usual portrayal, the Devil in Castle Waiting is explicitly stated to hate this trope, and the evil witch from the comic's version of Sleeping Beauty making use of this (by technically cursing the princess as a young woman rather than as the baby she is at the time the curse is made) is one of several reasons she ends up on the wrong side of Even Evil Has Standards.