• Hello,

    Last week my site was under brute force attack and someone was trying to login repeatedly. In order to block it I changed the .htaccess file and added:

    deny from all
    allow from 222.222.222.222

    – and then my site went blank. I can still access it through /wp-admin and have a full control panel/backend however on the front end, it’s all blank.

    I assumed it would come back once I removed the code, but it didn’t?

    Does anyone have a suggestion as to what to do? (Other than changing the host who’s washing their hands!)

    Thank you in advance,

    Mariaestela

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello Mariaestela,

    As a test, try using a default theme, such as Twenty Sixteen, etc.

    The blank page may be suppressing an error message. Enable debugging to see if a more detailed error appears.

    Cheers,
    John-Paul

    @Mariaestela Zoe

    What is in your site .htaccess file now?

    https://codex.www.ads-software.com/htaccess

    Hi Maria,

    First, if you must use your rule, fix it by changing to:

    order deny,allow
    deny from all
    allow from 222.222.222.222 # YOUR REAL IP HERE

    Remember, spaces are respected, so ensure yours is exactly like the above.

    Assuming you’re using Apache, I recommend installing mod_evasive, fail2ban, mod_security and enabling iptables.

    I would also recommend installing a security plugin or two from the plugins directory.

    Here is one, although it hasn’t been updated in some time. Seems to work with no issues on my end:

    https://www.ads-software.com/plugins/brute-force-login-protection/

    Here is another called WordFENCE:
    https://www.ads-software.com/plugins/wordfence/

    And last but not least, change ALL your passwords and ensure they are strong!

    Try something like this password generator:

    https://lastpass.com/generatepassword.php

    Hope this helps.

    Thread Starter Mariaestela Zoe

    (@passion4balance)

    Hi Luke,

    Thank you for your response and apologies for my late reply.

    It was:

    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    But I just removed the first part and changed it to:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Which didn’t make a difference. The front is still blank. ??

    Would you have any other suggestions?

    Thank you,

    Mariaestela

    Thread Starter Mariaestela Zoe

    (@passion4balance)

    Hi Rrecurse,

    Thank you for your reply.

    I have removed the rule altogether.

    I do have Wordfence installed and I am using a pw generator.

    Thank you,

    Mariaestela

    Thread Starter Mariaestela Zoe

    (@passion4balance)

    Hi John-Paul,

    Thank you for you reply and apologies for my late reply.

    Your suggestion led me into the Themes and I think something is whack. I am taking it up with my theme provider who can hopefully amend it.

    Thank you,

    Mariaestela

    Thread Starter Mariaestela Zoe

    (@passion4balance)

    NOTE: Something about the theme appears to be off, so I am taking it with the theme developer.

    Best,

    Mariaestela

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change in .htaccess -> blank site’ is closed to new replies.