06-30-2018, 05:59 AM
Blocking referrals through .htaccess
This is a technique that very few use because it requires more technical knowledge. At the server level, you can block incoming links from domains that we know are spam, but we must be careful not to touch anything that will damage the configuration of our domain.
For this purpose you can use a code like this:
RewriteCond% {HTTP_REFERER} ^ http: domain.com [NC]
RewriteRule ^. * $ - [F, L]
This is a technique that very few use because it requires more technical knowledge. At the server level, you can block incoming links from domains that we know are spam, but we must be careful not to touch anything that will damage the configuration of our domain.
For this purpose you can use a code like this:
RewriteCond% {HTTP_REFERER} ^ http: domain.com [NC]
RewriteRule ^. * $ - [F, L]