| Jeg har gjort følgende og det funker helt fint, men etter det har gått noen dager så blir dette bare helt borte
<Files ~ "^wp-login.php">
Order deny,allow
Deny from all
Allow from x.x.x.x
</Files>
Noen som vet hvorfor dette bare forsvinner?
<Files ~ "^wp-login.php">
Order deny,allow
Deny from all
Allow from x.x.x.x
</Files>
Noen som vet hvorfor dette bare forsvinner?
You can use your site's .htaccess file to only allow requests from your computer's local IP address.
*!* If you have either a dynamic IP address, or you access WordPress from multiple devices, each IP address that you access WordPress with would also need to be allowed in your .htaccess file. *!*
In order to find out your local computer's IP address, you can simply visit the following URL: http://icanhazip.com
After you have your local IP address, you can follow these steps in order to lock down your WordPress site to only permit logins from your IP address:
1. Login to cPanel.
2. Under the Files section, click on the File Manager icon.
3. From the Document Root for: drop-down, select your WordPress site.
4. Make sure that Show Hidden Files is checked.
5. Click Go.
6. Right-click on your .htaccess file, then click on Edit.
7. You may have a dialog pop-up from the text editor, go ahead and click Edit.
8. Now you can just paste in the following code, being sure to replace the x.x.x.x IP address with your own:
<Files ~ "^wp-login.php">
Order deny,allow
Deny from all
Allow from x.x.x.x
</Files>