Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Éviter le spam de commentaires

# Éviter le spam de commentaires
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post.php*
RewriteCond %{HTTP_REFERER} !.monsite.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>
Source by wpmarmite.com #
 
PREVIOUS NEXT
Tagged: #le #spam #de #commentaires
ADD COMMENT
Topic
Name
2+6 =