InMotion Hosting Support Center

How to block regular users from getting to my admin page.

Category: How To

n/a Points
2014-06-28 3:14 pm EST

Hits: 28
My admin control panel is
I don't want any regular users from the internet guess this admin url and try to messup my site.
Is there a way I can block those regular users and only aloow me and my other administrators on this admin url link? Like any permissions/firewall rule I can setup? Now any one can access this link from the internet.
Please help.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



9,968 Points
2014-06-28 4:01 pm EST

Yes there are couple ways that you can limit access to your admin page. You could either restrict access to the /admin folder by your IP address by adding this to your .htaccess file:

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/admin
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$
RewriteRule .* - [F,L]

Or you could password protect your directory.

Please let us know if you had any further questions at all.

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!