block access to /user and /admin

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


I have added an alias to drupal so that will bring up the login screen but how do I block people trying to access the url?

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
Have a look at the following:


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