JRS: In article <4k************ *************** *****@4ax.com>, dated
Sat, 18 Sep 2004 20:20:17, seen in news:comp.lang. javascript, Hoops
<ho*********@ya hoo.com> posted :
Does anyone have a good java script that I can add to my page so that
the same user doesn't pound my site and use all of my bandwidth?
If the user is not both malicious and intelligent, it is likely that he
will have javascript and cookies enabled.
If so, maybe get each page to set a cookie early on, with usage count
and short expiry. If the count is too high, redirect with script
location.href=< elsewhere>
If the user may be trying to defeat caching, check to see if there is a
? in the URL, and if so redirect.
Redirect to a page of minuscule bandwidth; I use an empty file.
If, however, you wish to protect against one who knows as much as Jim &
others, your only hope is to delete all your files from the server.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:http://www.merlyn.demo n.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demo n.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demo n.co.uk/batfiles.htm> - also batprogs.htm.