Spam Filter Causing 403’s
-
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>
The topic ‘Spam Filter Causing 403’s’ is closed to new replies.