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
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
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
0 comments:
Post a Comment