i am currently preventing leeching of PDF downloads for a company's
website by checking the referring URL (with PHP).
this works beautifully, except that there is an bug in internet
explorer/PDF that causes an error. i have written a little 'detect the
browser' code in there that generally fixes it, but customers are still
having problems. i would like to tell them to just use a real browser,
but hey... unfortunately most of the customers use IE.
to make things easier, i cam considering replacing the 'check the
referring url' bit of my script with a 'check for cookie' bit. i would
set a cookie when a user first entered the site. and then, if they
tried to download a file, the script would simply check for the
existence of the cookie.
what-a-ya'll think about using cookies for validating in an anti-leech
script?
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
- Re: [uug] anti-leech script... use cookie instead? Wade Preston Shearer
- Re: [uug] anti-leech script... use cookie instea... Soren Harward
- Re: [uug] anti-leech script... use cookie in... Stuart Jansen
- Re: [uug] anti-leech script... use cookie instea... Stuart Jansen