Add referer program

Example of referer link http://www.example.com/?ref=48357345
Example of viewing hits http://www.example.com/ref.php?ref=48357345