• Resolved moonstruck

    (@moonstruck)


    Hi, a month ago I moved my site to a new web hotel by downloading and uploading everything with FTP, including Wordfence. Should I have installed a fresh version instead, thru WP admin: add new plugin…?
    1: I ask because I have had the Firewall in learning mode for weeks now and it is stuck on 35 %. When I today am trying to optimize it and choose the right server configuration, it still suggests I do have the same server type as on the older web hotel, LiteSpeed/Isapi. And the new web hotel does not have the same. I am told by them to choose NGINX or Apache CGI.
    I choose Apache CGI and waited, but when I later look again, it still suggests LiteSpeed in optimization. But in the htaccess-file I can see that the LiteSpeed code is removed, only INI remain.
    Could plugin settings be confused by my ftp web hotel migration?
    Or is it just that Apache CGI was a bad choise? Should I try some other Apache alternative or NGINX?
    2: Also, when I download the htaccess-file before choosing server config, I can see that the file has been altered by my previous web hotel, they have added their own code in the file to prevent brute force attack against wp-login.php

    <IfModule mod_rewrite.c>
    	RewriteEngine on
    	RewriteCond %{REQUEST_METHOD} POST
    	RewriteCond %{HTTP_COOKIE} !^.*wordpress_test_cookie.*$ [NC]
    	RewriteRule wp-login.php  - [F,L]
    </IfModule>
    

    But that can′t be right, Wordfence does that already, right? (I do have brute force protection enabled) Should I delete the htacces-file, will that force it to be created again automatically without the additional code?
    Or should I delete whole plugin and start over again??

    As far as I can see the rest is working. I think…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @moonstruck,

    Yes, I would recommend reinstalling Wordfence from scratch once you’ve moved to a new host.

    Dropping and recreating the tables in the database isn’t a bad idea either.

    You can do this by checking Wordfence -> All Options ->
    Delete Wordfence tables and data on deactivation.

    Dave

    Thread Starter moonstruck

    (@moonstruck)

    Thanks! Yes I will do that.

    (My plan was to do a clean install of everything, but images and multilanguage gave me problem, so in the end I had to bulk move everything. So now I will have to clean up things after the move instead…)

    Sounds good! Please let me know if you notice any abnormality with Wordfence after the clean install.

    Dave

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Firewall configuration after site migrated?’ is closed to new replies.