• The following code being added to .htaccess now causes 403’s whenever anyone tries to leave a comment. This happens on Litespeed/Centos7 with php 7.3 and the latest WP/iThemes security.

    I’ve removed this code from all websites as a result. That fixed the issue for me, but figured I would report it.

    ——-BAD HTACCESS ENTRY———

    <IfModule mod_rewrite.c>
    RewriteEngine On

    # Reduce Comment Spam – Security > Settings > WordPress Tweaks > Comment Spam
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} /wp-comments-post\.php$
    RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
    RewriteCond %{HTTP_REFERER} !^https?://(([^/]+\.)?mysite\.com|jetpack\.wordpress\.com/jetpack-comment)(/|$) [NC]
    RewriteRule ^.* – [F]
    </IfModule>

Viewing 1 replies (of 1 total)
  • Hi,

    Thank you for bringing our attention to this. I will be sure to pass this information on to the developers.

    Thanks,

    Matt

Viewing 1 replies (of 1 total)

The topic ‘Spam Filter Causing 403’s’ is closed to new replies.