How to protect the Admin page ( . htaccess )
Hello. In this lesson will write a very good technical protection of your website , ie the Admin page , where the administrator login first . We may say that this technique will create a wall in front of login page of Administrator.
Techniques for which i will talk can be done through . htaccess and there seems to be an example to the page where login as administrator ( / forum / admincp )
Code :
http://www.tools.dynamicdrive.com/password/example/
( Username : user , Password : test )
Then must first create a file called . .htpasswd , Where we have a file will shenosh username & password ( the enkryptuar ) which wants to deciding admincp . To enkryptuar your password , will be able to use any htaccess generator such as KY
After having put the username & password . .htpasswd In this form : sitabej.com g143jh1h4k , suggested that . .htpasswd & . Htaccess not placed in the same folder of FTP 's , for security reasons ;)
Time has come to create and . Htaccess firmware file ( defensive wall ^ ^ ) , then create a file a . Htaccess file in a file and write this in it:
Code :
AuthUserFile / usr / local / sitabej/ passwords / .htpasswd
AuthGroupFile / dev / null
AuthName EnterPassword
AuthType Basic
Require user sitabej
However prefer to use this tool , you rush job 50 %
Code :
http://www.tools.dynamicdrive.com/password/
Enter usernames to indicate : Username you want to use for your key in admincp
Enter to enter the Passwords : Password you want to use for your key in admincp
Path to them . .htpasswd Indicate : Place where you decide . .htpasswd Example firmware file : / home / sitabej / passwords /
And click Submit , and then generated all have to decide what to . Htaccess and to . .htpasswd
. htaccess path to the firmware file to the place where the site wants to defend example : / forum / admincp /
With so ends this lesson , I hope that you understand , if not do not hesitate to ask .
No comments:
Post a Comment