Hi,
I want to block web crawler bots on some of my PBN`s.
As far as I know the best way to do it is from .htaccess.
I am using the following command, but it seems it doesn`t work and Ahref still detect the links from my PBN sites:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} (ahrefsbot|mj12bot|rogerbot|exabot|dotbot|gigabot|semrush) [NC]
RewriteRule .* - [F,L]
</IfModule>
Could you please let me know what code do you use to block web crawler bots (Ahref, MOZ, Majestic, Semrush etc) and what is the best way to do it?
Thank you!
I want to block web crawler bots on some of my PBN`s.
As far as I know the best way to do it is from .htaccess.
I am using the following command, but it seems it doesn`t work and Ahref still detect the links from my PBN sites:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} (ahrefsbot|mj12bot|rogerbot|exabot|dotbot|gigabot|semrush) [NC]
RewriteRule .* - [F,L]
</IfModule>
Could you please let me know what code do you use to block web crawler bots (Ahref, MOZ, Majestic, Semrush etc) and what is the best way to do it?
Thank you!