this is an important part of the website that are not well known, the task of this function is to protect your admin folder to have access to protection class of 2 log increase security capabilities, conventional in Direct Admin or Cpanel have this function if you do not know you can search on google with keywords like “how to password protect in direct” or “setting in cpanel password protect”.
started okay now, you want to protect your folders ie admin create file. “htaccess” with the following contents:
ErrorDocument 401 default AuthType Basic AuthName "You are pro ?" AuthUserFile /home/abc/domains/abc.net/.htpasswd/public_html/admin/.htpasswd Require valid-user
explained to her briefly on the code, the “you are pro?” the text display when you can begin logging alternative suggested by the text or a paragraph login instructions
the “/ home / abc / domains / abc.net / .htpasswd / public_html / admin / .htpasswd” is the path to the file containing your login information, you replace it with the path to your log file.
after declaring the path to the log file created with the name you finish. “htpasswd” with the following contents:
part of the “:” separator where the username and encrypted password, you can replace sections of your encrypted password.
wish you success