(01-11-2012, 05:33 PM)AceInfinity Wrote: You're going to add this manually for every IP you have to ban though?
You could also go with an .htaccess method
This is just a quick way of banning people from one page, if you wanted to do it for all of them you can make that a lot easier too. Put the code into a file called something like 'inc.php' then just:
PHP Code:
<?php
require 'inc.php'; // Do this for every page, and you can copy and paste it to make it even quicker.
?>
Simples.
(01-11-2012, 07:32 PM)Laugh Wrote:(01-11-2012, 07:27 PM)lovetospooge Wrote: You could just ban the IP in your cPanel, if you use cPanel.
But he is telling us how to do it with PHP.
Exactly, thanks.