Prohibit an IP Address
You may have visitors that hurt your site and you want to block their access. Here is a code that get this ability to you. just replace the $blocked with the IP that must be blocked.
<?php
$blocked="127.0.0.1";
if (ereg($blocked,$ip)) die('?>
<p style="text-align: center; color: #FF0000; font-size: 32pt;">
<strong>Your IP is Blocked!</strong>
</p>
<?php
');
?>
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment