Skip to content

Instantly share code, notes, and snippets.

@riix
Created December 28, 2012 04:44
Show Gist options
  • Select an option

  • Save riix/4394574 to your computer and use it in GitHub Desktop.

Select an option

Save riix/4394574 to your computer and use it in GitHub Desktop.
Referrer block with PHP
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'ilbe.com') !== FALSE) {
header('Location: http://block-ilbe.owlize.net/trashcan/');
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment