htaccess file on Apache server and blocking back link tools

nesir

Member
Joined
Jul 23, 2017
Messages
34
Points
8
Hi guys ive read alot in the subject and the risk certianly outweights the cons for me im trying to use my htacess file to block semrush ahrefs and all the big backlink checkers as i have recenlty seen people getting duplicate links to what i have also being scanned by bots that steal my bandwidth on my server . Ive tried many variations of this but it soesnt seem to be working can i dont know too much about mod re writes syntax , here is what i have :

Code:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^rogerbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^exabot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^dotbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^semrushbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^gigabot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^AhrefsBot [NC]
RewriteRule ^(.*)$ http://example.com
Not to me this should redirect the bots away to another site yet it doesnt am i ovelooking simple mistake here?
 
Older threads
Replies
1
Views
1,665
Replies
2
Views
1,192
Replies
2
Views
2,083
Replies
3
Views
1,482
Newer threads
Replies
0
Views
2,755
Replies
2
Views
1,161
Latest threads
Replies
0
Views
20
Replies
0
Views
127
Replies
2
Views
330
Recommended threads
Replies
24
Views
13,702
Replies
0
Views
2,140
Replies
85
Views
30,807

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top