in reply to Re^4: ERROR - Invalid Referrer
in thread ERROR - Invalid Referrer
Those are the ones that give you the error and although a novice might think they offered some protection, they really don't.@valid_ref = ('http://www.willettsbutchers.co.uk') ; foreach $ref (@valid_ref) { if ($ENV{'HTTP_REFERER'} =~ m/$ref/i) {$is_valid = 1 ; last ;} } if (! $is_valid) { print "Content-type: text/html\n\nERROR - Invalid Referrer\n" ; exit 0 ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: ERROR - Invalid Referrer
by rbspro (Initiate) on May 23, 2005 at 13:29 UTC |