block access to /user and /admin

oberon99
oberon99 used Ask the Experts™
on
I want to block access to the login urls in Drupal

.eg. http://www.example.com/user

I have added an alias to drupal so that
http://www.example.com/secretlogin will bring up the login screen but how do I block people trying to access the http://www.example.com/user url?

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
you need a .htaccess to block access. something similar to

<Directory /path/to/phpMyAdmin>
Order Deny,Allow
Deny from all
</Directory>
Commented:
Have a look at the following:

http://www.nixer.org/securing-drupal-http-auth

Gary

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial