Sunday, September 11, 2011

PHP - Redirect Malicious IP Address

<?php 
/**
http://kuntoaji.blogspot.com
*/

/* Replace this with your IP address.. */
$malicious_ip = '127.0.0.1'

if ($_SERVER['REMOTE_ADDR'] == $malicious_ip) {
header("Location: http://www.example.com/");
}
?>

Artikel Terkait

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...