What is Mousetrapping?

Article Details
  • Written By: R. Kayne
  • Edited By: O. Wallace
  • Last Modified Date: 18 October 2019
  • Copyright Protected:
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
Fr. Thomas Byles, who refused to leave the sinking Titanic and stayed to help others, is a candidate for sainthood.  more...

October 21 ,  1879 :  Thomas Edison lit up a light bulb for the first time.  more...

Mousetrapping is a technique used to trap an unwilling visitor at an offending website in order to gain maximum benefit from the one-time visit. A victim of mousetrapping is most often delivered to the offending site via pagejacking, which occurs when a surfer believes he or she has clicked on a legitimate link, only to be redirected to a pornographic site.

Unscrupulous persons can copy high-ranking, legitimate webpages, then add a bit of code that causes would-be visitors to land somewhere else entirely. These bogus links end up in search engines because the stolen content and code mirrors legitimate pages (aside from the redirect). A surfer can’t tell if a link is bogus or not until he or she clicks on it. Choose to visit a camera retailer, check out wedding dresses, or see the score for last night’s game, for example, and you might end up in the “red light” district.

Pagejackers know that unwilling visitors will immediately try to click out of the offending site, so they incorporate additional redirect code that prevents leaving, while using the visitor’s clicks to generate revenue. Pressing buttons like “back,” “forward,” or even “close” will begin a loop, opening one offensive site or advertisement after the next, popping up banner after banner in a cascade of windows. This is mousetrapping.


As the visitor gets more and more frustrated trying to click out, each click benefits the pagejacker. This unlawful practice does not rely on return visits or creating a nice experience for the visitor, it’s simply meant to exploit clicks. In effect, mousetrapping is a kind of electronic mugging. Muggers don’t expect you to return, they take everything they can on the spot. The philosophy behind pagejacking is the same.

Although some browsers and plug-ins prevent scripts that cause loops or redirects, if you find yourself pagejacked you can avoid mousetrapping by manually entering a legitimate address in the URL (address) field of the browser. Another option is to click on a saved bookmark or a link from your “Favorites” folder. Avoid clicking on window or banner buttons, even when they feature a “Close” button. The close button is commonly another redirect trick.

Pagejacking and mousetrapping can both be avoided by disabling JavaScript, though many users prefer not to do this since legitimate sites also make use of JavaScript. One alternative is to use the Firefox™ browser, which has available add-ons to prevent scripting globally, while allowing users to enable scripting for specific sites. The browser is free and open-source, as are its add-ons. Another alternative is to install a filtering program that blocks access to sites that contain objectionable content.


You might also Like


Discuss this Article

Post 1

Oh, my good Lord! I had no idea about "mousetrapping" and "pagejacking" until I happened upon your very useful and informative site!

I must thank you for the swift education, and although I do realize that there are several unworthies with malicious intent out there, such information still comes as a huge shock. --Cleo

Post your comments

Post Anonymously


forgot password?