Does anyone have a solution for...
by bobmin(at)nidlink.com
|
| Date: |
Thu, 14 Dec 2000 01:12:14 -0800 |
| To: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Greetings;
I am wondering how others might have approached this problem.
I have a script which I want to be executed only from within a single
domain. I put in a simple routine that prevented the script from
operating based on the referer value. Unfortunately I learned much
to my annoyance that not all people provide a referer value. Hence
I was forced into doing something like this;
sub lockout
{
if ($ENV{'HTTP_REFERER'}!="") # null referer, let the routine go
{
if ($ENV{'HTTP_REFERER'}!~/$ownerDomain/)
{
print "Content-type: text/html\r\n\r\n";
print "We're sorry, but this application can be executed \n";
print "Only from the $ownerDomain domain.<p>\n";
blah
blah
blah
exit;
}
}
}
Now I'm faced with an issue of an outright copyright violation where
someone has basically copied all 500+ pages of our site.
Unfortunately the odds of being able to prosecute the violators are
slim as the country they are in rarely pays attention to western
copyright laws. So what I need to do is somehow fix this lockout
routine so that this bogus website cannot remotely execute our
script. Its got to be something that they cannot lift from the html
code. Is there some variable in the environment that is ALWAYS
returned that I can test for? I don't want to lock out the people who's
system doesn't provide a referer just because of one bad apple.
Thanks
Bob Minnick, Northern Webs
^------------------------------------------------------------------------^
| Bob Minnick, President, Northern Webs |
| 159 Trapps Drive |
| Sagle, ID 83860 |
| 208.265.0474 |
| http://www.northernwebs.com (homepage) |
| http://www.northernwebs.com/set/setsimjr.html (meta medic) |
^------------------------------------------------------------------------^
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.