Okay, I have noticed some people attempting to log into my admin panel on my site as this fears me, Was my website SQL injected? Was it crossed script? Well I wrote up a simple solution to my problem by writing a easy PHP snippet that goes into the acp index file.
This method is far effective Because no matter what they can't get to the acp login page, Don't hate because it is a small snippet, but hey it could save your forums from getting hacked.
In the admin directory go to index.php
add in this snippet above everything
Code:
<?php $allow = array("0.0.0.0" ,"127.0.0.1" );
if(!in_array($_SERVER['REMOTE_ADDR'], $allow) && !in_array($_SERVER["HTTP_X_FORWARDED_FOR"], $allow)) {
header("Location: http://redirectwebsitelinkhere.com");
exit();
}
Change the Ips to yours, if you want to add in more just follow the set up it isn't hard.
The redirect site can be anything You want, I just have it set to a php script that catches their ip and has the typewritting effect displaying text be creative on this since it is your website.
This could be implemented into VB, smf, mybb, etc. I just said IPB because I am not to sure how the admin panel is set up on those forum bases.