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

Category: How To

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

Hits: 16
My admin control panel is
http://23.235.195.101/admin/users/login
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.
Thanks.


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

You must login before you can submit an answer.

OTHER ANSWERS

0

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

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?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!