| 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
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:
Login to cPanel.
Under the Files section, click on the File Manager icon.
From the Document Root for: drop-down, select your WordPress site.
Make sure that Show Hidden Files is checked.
Click Go.
Right-click on your .htaccess file, then click on Edit.
You may have a dialog pop-up from the text editor, go ahead and click Edit.
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
Sjekk datoen på når fila sist ble endret. WordPress har en ufattelig evne til å åpne og lagre fila på nytt, så jeg vil tippe at datoen for fila di er nyere enn når du manuelt redigerte den?