Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created April 11, 2016 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thierrypigot/bc4436d992d7f08056b431b5825c39ef to your computer and use it in GitHub Desktop.
Save thierrypigot/bc4436d992d7f08056b431b5825c39ef to your computer and use it in GitHub Desktop.
Éviter le spam de commentaires dans WordPress
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.presse-citron.net.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment