<?php
$URL = $_SERVER['HTTP_REFERER'];
echo $URL;
?>
$URL = $_SERVER['HTTP_REFERER'];
echo $URL;
?>
Referer script is used for many reasons, some of them are creating web traffic statistics, or allowing only visitors from a one website to see your website.