Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Ip adresses who are banned is in the $ip_ban. You can put how many you want.
- $ip_ban = array("20.191.17.253","","");
- // Checks if the visitor can visit your site
- if(in_array($_SERVER['REMOTE_ADDR'],$ip_ban)){
- // If not the script will write out this
- echo '<h1>Your ip is banned from this site</h1>';
- // End of code
- exit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement