Thursday, August 20, 2015

Protect Your Admin Panel With Htaccess

Go to your folder wanna protect from some attacker :)

Create file .htaccess with a content:


AuthName "hehe, lethacking.com"
AuthUserFile "/home/youuser/.htpasswds/public_html/adminfolder/passwd"
AuthType Basic
require valid-user

Hash your password here!
http://www.htaccesseditor.com/en.shtml#a_basic


Example:
user: lethacking.com
password: 123456
and this is my hash: "lethacking.com:Ua1yUMW27zCZo"

Ok, now we can create file password with content like this in file "passwd":

lethacking.com:Ua1yUMW27zCZo

If your server 500 Internal with htaccess login, please remove that file and try again with other content htaccess .

No comments:

Post a Comment