MN Forum
Admin CP security? - Printable Version

+- MN Forum (http://forum.mn-shop.com)
+-- Forum: Products (http://forum.mn-shop.com/forum-products.html)
+--- Forum: Ask a Question (http://forum.mn-shop.com/forum-ask-a-question.html)
+--- Thread: Admin CP security? (/thread-admin-cp-security.html)



Admin CP security? - Galaxian - 04-06-2015

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?


RE: Admin CP security? - Breaker - 04-07-2015

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


RE: Admin CP security? - Galaxian - 04-07-2015

(04-07-2015, 08:28 AM)Breaker Wrote: Hidden content for guests

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