Reduce Comment Spam Module valid_referer
-
Below is the code from my nginx config file generated by plugin.
Am I missing something? Users are facing 403 on posting comments.# Reduce Comment Spam – Security > Settings > WordPress Tweaks > Comment Spam
location = /wp-comments-post.php {
limit_except POST { deny all; }
if ($http_user_agent ~ “^$”) { return 403; }
valid_referers server_names jetpack.wordpress.com/jetpack-comment/;
if ($invalid_referer) { return 403; }
}When I change it to:
valid_referers server_names jetpack.wordpress.com/jetpack-comment/ *.mysite.com;
Post Comment works.Update: still doesnt work. I have to disable Reduce comment spam to allow legit user comments.Do I explicitly need to add *.mysite.com?
Ofcourse mysite.com implies the domain and is not the actual URL.Server is nginx.
The topic ‘Reduce Comment Spam Module valid_referer’ is closed to new replies.