[htaccess]how to password protect a directory or admin folder to your ip only

You can secure your admin folder from hacker by allowing only to your ip address and htaccess passwd

1.Go to admin folder create 2 files .htacces and .htpasswd

2.open .htacces

put these code in it


#remeber /home/admin is path complete path to admin folder
AuthUserFile /home/admin/.htpasswd 
AuthName EnterPassword
AuthType Basic
require valid-user
#111.222.333.444 => your ip
order deny,allow
deny from all
allow from 111.222.333.444

3.open .htpasswd

#enter your username:passwd
#you can add many user
mad:12345

Penulis : Anon Cop ~ Blog is bassically for giving maximum knowledge of hacking to provide security.

Latest Article [htaccess]how to password protect a directory or admin folder to your ip only is published by Anon Cop on Thursday, 8 November 2012. i think this article will be helpfull if so dont forget to thanks in comments already have 0 Comments: in this post [htaccess]how to password protect a directory or admin folder to your ip only
 

0 comments:

Post a Comment