This documentation is only valid for older versions of Wordfence. If you are using Wordfence 7 or later, please visit our new documentation.


From Wordfence Documentation
Jump to: navigation, search

Important: Only modify your .htaccess file if you know what this file is for and how to change it if you lock yourself out.

Add the following lines of code to your .htaccess file to block from your site.

# block visitors referred from
RewriteEngine on
RewriteCond %{HTTP_REFERER} semalt\.com [NC]
RewriteRule .* - [F]

Thank you Kenneth Yau for providing this code.