|
|
PHP referrer URL of a page
Referrer is the URL from where the visitor has arrived to the page. If you have reached here by clicking a link from google.com then google URL is the referrer for you in this page. We can find out the referrer by using PHP. This is useful for the webmasters to know where from the traffic to the site is coming. Which advertisement campaign is successful and which is not. We will also know the keywords used by the visitors in different search engines to arrive at the site. Here is the simple code to know the referrer in PHP
$ref=@$HTTP_REFERER;
echo "<font face='Verdana' size='3'><b>Referrer of this
page = $ref </b>";
This is the code and here is your referer to this page
Same way you can find out the ip address of visitors to your site by using PHP. Click here to know the IP address by using PHP.
Getting referrer URL in ASP
Read article on visitor tracking
Some of the browsers setting can be changed to stop the browser from sending any referrer information. Read here to know how you can change the settings for FireFox browser for referrer.
|
| |
| | | jayanta | 10-02-2010 |
|---|
| Not working | | Colin | 17-02-2010 |
|---|
It doesn't work for me either...
but this does:
$ref = $_SERVER['HTTP_REFERER']; | | Sumit Joshi | 11-03-2010 |
|---|
Great...Fully Working for Me.
Great help... Since long time I was looking for this. You are great...
Thanks again |
|
| |
|
|
|