Showing the refferer

michuricane

Regular Member
Joined
Nov 14, 2012
Messages
266
Reaction score
58
Hello,

Is it possible to show the refferer page URL info on my redirected page.

For example, if the refferer page is http://facebook.com/big_boom
I want that my redirected page show somewhere "big boom".

Thanks
 
Yep! It can be done with a lot of programming languages. For example in php,

<?php
$refferal = $_SERVER['HTTP_REFERER'];
echo $refferal;
?>

Then you can use a regular expression to grab just the end of the url.


 
Thanks but how do I do that? I just want the end of the page, not the full URL
 
I have heard about using this:
sed -e 's/http://.*.com///'
But how can I use this command in a HTML page?
 
Back
Top