kruxor.com
//
using the $_SERVER['HTTP_REFERER'] to check referring pages
//
Demo
http://kruxor.com/bundle/using-the-serverhttpreferer-to-check-referring-pages/index.php