Worried about someone finding your login page and attempting to brute force the login?
Lets open up login.php and add the following
PHP Code
$whitelist = array('1.1.1.1', '2.2.2.2'); if (in_array($_SERVER['REMOTE_ADDR'], $whitelist)) { //Action for allowed IP Addresses } else { //Action for all other IP Addresses echo 'You are not authorized here.'; echo "<br />IP Address: ".$_SERVER['REMOTE_ADDR']; exit; }
Of course, change 1.1.1.1 and 2.2.2.2 to your IP address and (for example) the IP of your VPN.
Now no one except for you can access your admin panels login page! 😎 Cheers
-Scrubspoof