Minggu, 11 September 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

Tidak ada komentar:

Poskan Komentar

Related Posts Plugin for WordPress, Blogger...