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,807
Replies
2
Views
1,198
Replies
2
Views
2,218
Replies
3
Views
1,492
Newer threads
Replies
0
Views
2,814
Replies
2
Views
1,168
Latest threads
Replies
1
Views
86
Replies
1
Views
100
Replies
1
Views
230
Replies
0
Views
240
Replies
0
Views
257
Recommended threads
Replies
7
Views
3,168
Replies
2
Views
3,097
Replies
36
Views
12,118
Replies
8
Views
4,164

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