Everything2
Near Matches
Ignore Exact
Full Text
Everything2

abusive JavaScript

created by Frater 219

(thing) by Frater 219 (5 y) (print)   ?   (I like it!) 1 C! Thu May 31 2001 at 4:51:49

Any JavaScript or ECMAscript code whose purpose is to do harm to a Web page's viewer -- most usually, to inhibit him or her from navigating or leaving a Web site. In general, a piece of JavaScript code may be regarded as abusive if it overrides the user's control of his/her own browsing.

JavaScript permits a page designer to trap out certain elements of the browser's user interface. A common abuse is to trap out the user's ability to close a browser window, replacing it with a function which opens more windows into the abusive site. This is most common on fake porn sites, which force the user to reload pages of banner ads in an attempt to reap fraudulent advertising revenues for the page's maintainer.

Another, somewhat milder abuse is to deny the user the ability to open a frame of a framed Web page into an independent window. By testing to see if a page has been loaded into a frameset, and refreshing into the frameset if it has not, the page author can force the user to look at pretty sidebars -- or, more often, ugly and flashy ads. SecurityFocus practices this abuse, and for no apparent reason.

Finally, one of the grossest and most unnecessary JavaScript abuses is to test the browser's user agent identity -- basically, its manufacturer and version number -- and to bounce the user from the site if the browser is not a "supported" model. This sort of abuse was popularized by Netscape in the early days of the popular Web, and led to all manner of Web browsers, including Microsoft's Internet Explorer, representing themselves as "Mozilla" in order to ensure their users access to sites that blocked non-Netscape browsers.

Abusive JavaScript has its greatest effect on new users of the Web, as more experienced users have learned to turn off JavaScript in their browser configurations -- either all the time, or at least when accessing potentially abusive sites.


printable version
chaos

Web browser denial-of-service attacks fake porn site ECMAScript Right-click trap
HTML form double submit bug Fake porn JavaScript Hyperbrowsing
Mozilla Space Raiders keep it on the client side Papal Swiss Guard
trap newbie The Journal Entries Trivia ECMA
web
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your sibling would have liked:
Inspired genius
Nutter Butter
Singularity
Pretenders II
Turkana Boy
Judge not, lest ye be judged
True neutral
Jacob's Ladder
On the Arts and Sciences to be Studied
L'Académie française
designated hitter
How to appreciate jazz without really trying
How to buy drugs in an open-air market
New Writeups
Pavlovna
My Better Half(fiction)
kanoodle
Molson muscle(essay)
aneurin
You pays your money and you takes your choice(idea)
shaogo
July 20, 2008(log)
Glowing Fish
Tualatin River(place)
The Jacket
Words of Advice(idea)
John_Fox
Good Intentions Gone Wrong(person)
Heitah
Posthumous Oscar(thing)
ignis_glaciesque
University of South Florida(place)
ignis_glaciesque
Flogstaskriket(idea)
liveforever
Caesar's last breath(idea)
dagnyswaggart
she wants to believe(personal)
antigravpussy
he doesn't know, but her eyes widen too far(thing)
dagnyswaggart
Wild tides guard her secrets(poetry)
Lord Brawl
Caesar's last breath(poetry)
This affordable entertainment brought to you by The Everything Development Company