We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Security

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is Mousetrapping?

By R. Kayne
Updated: May 16, 2024

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.

EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By anon259162 — On Apr 04, 2012

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

Share
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.