WordPress protection on linux hosting. Reg.ru

Hello dear readers! WordPress protection. Today I will tell you how to protect the wordpress login page of your site, I will show it using the example of hosting the reg.ru registrar on the ISPmanager control panel.
Go to the ISPmanager panel
Go to the site directory
Select the .htaccess file, click edit →
insert lines into the file if the file does not exist create it:
<Files wp-login.php>
AuthType Basic
AuthName “Private zone”
AuthUserFile path-to-root-site-folder/.htpasswd
Require valid-user
</Files>
specify the path to the root folder of the site:
AuthUserFile /var/www/u1234567/data/www/sait.ru/.htpasswd
where u1234567 is your hosting login
Create a .htpasswd file Click create, file type, name .htpasswd
The file will store the login and password (in hashed form).
We pass on link.
Enter your username and password and click: « Create .htpasswd file»
Copy the created line and paste it into the .htpasswd file
press save and Ок.
he password in the htpasswd file will be hashed.
You need to enter the admin panel using the login and password that you came up with. Now, when you enter sait.ru/admin, a window will open for entering your username and password, and only after that the wordpress page for entering the site.
That’s all ! Everything is simple and affordable. All happiness, success, health!Likes, links, tweets are welcome.
Did you like the post? WordPress protection on linux hosting. Help others to learn about this article by clicking on the social media button
See you!
Read more:Link: ‘Read More’ I change to ‘Читать далее’ and put it where necessary.
Leave a Reply