PDA

View Full Version : Send webpage by referrer script



webJdesign
July 5th, 2006, 01:13 AM
Hi,

I don't know if anyone has come across an instance where they need to identify the referring webpage; a few years ago when I was teaching myself cgi/perl the popular method was to call the 'HTTP_REFERER' variable. However, after recently reading up on it, it seems that there are many security weaknesses in using this.

Therefore, I wanted to write a php script that could be dropped into any website directory and as long as you're linking to it from a page on your site, there are no additional query strings or hidden inputs that you need to specify - all of that while being a safe script in security as well.

I would greatly appreciatly any feedback on it:
http://treehousepc.com/send_webpage_via_referer.zip

working examples:
http://www.luxurygolfandtravel.com/celebrity_profile_costner.html
http://treehousepc.com/vonvisions/

Thanks in advance,
-J