Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to reliably get referrer?

by punch_card_don (Curate)
on Mar 03, 2009 at 16:50 UTC ( [id://747800]=note: print w/replies, xml ) Need Help??


in reply to How to reliably get referrer?

MUCH simpler idea - I think

htaccess checks the Query String, not the Referer.

IF (Query String != long_string_a+date+long_string_b+hour+long_string_ +c) THEN redirect to logging script on other server, appending the origina +lly requested url, the local date and the local hour ELSE simply re-write url to remove query string END
The Perl script on the other server strips the originally requested url, date and hour, generates a Query String using static long_string_a, b, and c, the date and the hour, and redirects back to

originally_requested_url?q=long_string_a+date+long_string_b+hour+long_string_c

But htaccess strips the Query string off, so noone ever sees it, it's nigh impossible to guess, and it's dynamic so very hard to spoof.

Any holes in my theory?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://747800]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-20 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found