• Resolved Just Here

    (@sefaarslan88gmailcom)


    Hi,

    I’m using this great plugin and some features have to write the .htaccess file. I want to block some IP’s and that one also has to write the .htaccess file.

    I always first grant access to wwwroot via cpanel when I’m editting something on my website. I think my host is not a linux based server.

    When I try to block some IP, I get the next error: “The plugin was unable to write to the .htaccess file. Please edit file manually.”

    That makes sense, because I don’t have any .htaccess file (yet)…

    I did not have any .htaccess file in my wwwroot/ directory. So, I made one by myself and uploaded to wwwroot via Filezilla (cpanel doesn’t). After that, it still giving the same error. After that I deleted the .htaccess file. When I did try to upload again later, I couldn’t! Also not when I change name of .htaccess file before uploading..

    So, I did read a lot about the .htaccess file and just saw that WP makes automaticly a .htaccess file (if you don’t have one) when you change your permalink settings to the “year, month, day and name” option. I just did that, but than it says: “permalink structure updated. Remove write access on web.config file!” When I look, I see nothing changed. WP still uses postnames for url’s.

    However, when I did want to block IP adresses I met this problem with the .htaccess file (and also web.config file). How can I resolve this? Anyone any ideas? Thank you!

    Sef.

    https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    @just Here the above .htacces entry is the standard created when you save your permalink settings. You can read more about it here.

    Another words when someone installs WordPress in an Apache server, once they set up their permalink structure and save the settings the .htaccess file is created with the above or something similar code.

    Thread Starter Just Here

    (@sefaarslan88gmailcom)

    I’ve got it! Thank you.

    I will update after trying it out.

    Sef

    Thread Starter Just Here

    (@sefaarslan88gmailcom)

    Hi mbrsolution,

    I did paste that code in my .htaccess file. Thank you guys.
    However, I did change the login URL of my admin panel. Now I don’t have any problems since a couple of months. I can also see who is trying to login my admin panel. Some IP’s are trying to login every 10 seconds via https://www.mywebsite.com/wp-login. But that doesn’t exist anymore ?? Let those bots try out for hours…

    I don’t think I have to block IP’s from now and therefore I shouldn’t know why I need the .htaccess file. Although, I did follow your steps and paste the code in the .htaccess file…

    Sef.

    Hello, I’ll write down the way I asked my server support

    “I’m using the plugin” WP Security & Firewall Plugin “and I’m having trouble blocking IPs, as a message that the plugin could not write the .htaccess file, asks me to write by hand.
    I put this line in .htaccess “

    This was the stand response

    “In response to his demand was that the syntax Verified Used In file ‘.htaccess’
    Is Incorrect, we ask you to review the contents of it, so follow platform standards.

    The error is in the ‘syntax’ (GRAFIA) because the file must contain the rules spelled in the language accepted by APACHE (LINUX) or IIS (WINDOWS)

    Ex:
    Allow, Deny
    Deny From *

    Additionally found that his platform does not support .htaccess because it is in Windows platform.

    For the operation of such rules, we ask that convert to standard accepted by IIS and that FILE IN WHICH WILL INCLUDE SUCH RULES IS Web.config “

    As Example Vejas the FAQ:
    https://www.uolhost.uol.com.br/faq/hospedagem/como-utilizar-o-modulo-url-rewrite-do-iis-7windows-2008-no-uol-host.html

    Not yet tested to see if it works

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘.htacces file not writeable’ is closed to new replies.