Month: March 2020

Stop automated WordPress spam

By using ‘no referrer spam’ code added to your .htaccess file before the WordPress code.

# BLOCK SPAM
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{REQUEST_METHOD} POST
	RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
	RewriteCond %{HTTP_REFERER} !your-domain.com [NC]
	RewriteCond %{REQUEST_URI} /wp-comments-post\.php [NC]
	RewriteRule .* - [F,L]
</IfModule>

To test, visit Chrome or FireFox add-ons/extensions

https://addons.mozilla.org/en-CA/firefox/addon/http-request-maker/