• Hi,

    I put this in the “Custom htaccess” section of the plugin:

    RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx$
    RewriteRule ^wp-(login|register)\.php http://example.com [R,L]

    Replacing the “xxx” with my IP and “example.com” with my site. Is this in the correct format for .htaccess? Do you have any information regarding using .htaccess to block attempted hackings?

    Thank you,
    Jordan

    https://wordpress.org/plugins/wp-htaccess-control/

Viewing 1 replies (of 1 total)
  • Hi there,

    I also tried this and put these codes

    RewriteEngine On RewriteBase /
    block spammers RewriteCond %{HTTP_REFERER} ^https?://([^.]+.)*copyrightclaims.com [NC,OR] RewriteCond

    %{HTTP_REFERER} ^https?://([^.]+.)*kambasoft.com [NC,OR] RewriteCond %{HTTP_REFERER} ^https?://([^.]+.)*savetubevideo.com [NC,OR] RewriteCond %{HTTP_REFERER} semalt.semalt.com [NC,OR] RewriteCond %{HTTP_REFERER} ^https?://([^.]+.)seoanalyses.com [NC] RewriteRule . – [F]

    RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

    but still getting lots of spammer attempts on myconsumercourt.com. As a developer job, i need your help..

    Thanks in advance,

Viewing 1 replies (of 1 total)

The topic ‘Using .htaccess to block hackers’ is closed to new replies.