# Send webpage by referrer script

**URL:** <https://forum.kirupa.com/t/send-webpage-by-referrer-script/193202>\
**Category:** programming\
**Created:** [July 5, 2006, 5:13am UTC](https://forum.kirupa.com/t/send-webpage-by-referrer-script/193202 "2006-07-05T05:13:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webJdesign](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@webJdesign](https://forum.kirupa.com/u/webJdesign)\
**Post date:** [July 5, 2006, 5:13am UTC](https://forum.kirupa.com/t/send-webpage-by-referrer-script/193202/1 "2006-07-05T05:13:58Z")

</div>

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](http://treehousepc.com/send_webpage_via_referer.zip)

working examples:  
[COLOR=#003366][http://www.luxurygolfandtravel.com/celebrity\_profile\_costner.html[/COLOR][URL=“http://www.luxurygolfandtravel.com/email\_webpage.php”]](http://www.luxurygolfandtravel.com/celebrity_profile_costner.html)  
[http://treehousepc.com/vonvisions/](http://treehousepc.com/vonvisions/)

Thanks in advance,  
-J
