Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Writing link on HTML pageby joe++ (Friar) |
on Nov 04, 2002 at 09:29 UTC ( [id://210147]=note: print w/replies, xml ) | Need Help?? |
Hello Deanimal, The "referer" http header is not compulsory for a web browser to send back to the server. It is merely a convention which is very convenient in many cases. However, there can be nasty side effects (like exposing semi secret urls from a linking intranet). There has been lots of discussion about this subject far beyond your question. What I recall is that IE implements some security mechanism where a transition from scheme (e.g. http to https) suppresses the referer header. Also, some proxy/firewall products can filter referer headers. When I had the same kind of problems with a web form I implemented the following three staged solution:
Example of the Javascript hack (from memory, not tested): Update: rephrased the three steps to be more clear (hopefully). --
In Section
Seekers of Perl Wisdom
|
|