I'm trying to deny access to all IP's but mine to the admin panel of my website.
Like so:
location /admin {
allow my.ip.add.ess;
deny all;
}
This works. The problem is, "/index.php/admin" also works to access the admin login page, and the block "location /index.php/admin" doesn't work.
Why doesn't the following work?
location /index.php/admin {
allow my.ip.add.ess;
deny all;
}
Is there any simpler way to accomplish what I want? Basically, every URL that has "/admin" on it should only be accessable by my IP.