PDA

View Full Version : Restrict AdminCP access by IP Address in .htaccess?


findingpeace
10-03-2013, 07:10 PM
With all of the hacks recently, I would like to increase our security, and I think the AdminCP is our last remaining weak link.

Is it possible with .htaccess to restrict all files in that directory so it can ONLY be opened by certain IP addresses? I understand that IPs change - that's fine with me. I would prefer changing that occasionally, over entering an extra password every time.

Thanks

snakes1100
10-03-2013, 07:15 PM
You can just do the folder, dont need to do the files, just put the below in a htaccess file in the admincp folder.


Order Deny,Allow
Deny from all
Allow from youriphere


You should also rename the admincp folder, then update your config file as well with the new name.

findingpeace
10-03-2013, 07:18 PM
Thank you!! How can I add multiple IPs?

snakes1100
10-03-2013, 07:42 PM
Add additional Allow lines