Link to home
Start Free TrialLog in
Avatar of Sheena Roy
Sheena Roy

asked on

How to make a url password safe using htacess ?

I'm trying to hide admin directory for a https://www.putmeonline.net/. The reason is that because I have to mention disallow path in robots.txt. That's a security risk. I just need a solution so I can hide the admin page using username & password using htacess. Thanks
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of btan
btan

Just a note, you should also need to change the ownership of the htaccess file so the Apache process can read its contents:

chown www-data:www-data /var/www/.htaccess

If it is an admin page, enforce 2FA for such login. Here is one implementation example.

http://m.linuxjournal.com/content/two-factor-authentication-system-apache-and-ssh?page=0,1
Avatar of Sheena Roy

ASKER

Thanks Guys