Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created June 23, 2015 15:01
Show Gist options
  • Save thierrypigot/a5749682f843d2ea2663 to your computer and use it in GitHub Desktop.
Save thierrypigot/a5749682f843d2ea2663 to your computer and use it in GitHub Desktop.
Font chier ces spammeurs !
<?php
$host = gethostbyaddr( $_SERVER['REMOTE_ADDR'] );
if( strstr( $host, 'pnet.pl' ) )
{
ob_end_clean();
header("HTTP/1.0 404 Not Found");
header('location:http://www.dtc.fr/');
die();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment