MN Forum

Full Version: Admin CP security?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey!

I have a few questions on how to protect the admin cp, hopefully someone will be able to help:

1. What would be the best way to log activity in admin cp?
2. How to restrict all IPs but 2 from accessing any page in the admin cp?
Hello Galaxian,

First of all change the name of your control-panel folder to something else.

Second if you want to restrict all the access but only 2 IP's to access it you need to use .htaccess

And here is how to do it:

1. Create an file in your control-panel folder (or the new name of the panel) called: .htaccess

2. Add the next into the file and save it:

PHP Code:
Hidden content for guests 

Note:

111.111.111.111 = first allowed IP
222.222.222.222 = second allowed IP

Enjoy Tongue
(04-07-2015, 08:28 AM)Breaker Wrote: [ -> ]Hidden content for guests

Thanks a lot mate! Great tip on the name change too, appreciated.