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,818
Replies
2
Views
1,198
Replies
2
Views
2,228
Replies
3
Views
1,493
Newer threads
Replies
0
Views
2,817
Replies
2
Views
1,168
Latest threads
Replies
1
Views
95
Replies
1
Views
114
Replies
1
Views
234
Replies
0
Views
249
Replies
0
Views
260
Recommended threads
Replies
2
Views
3,711
Replies
9
Views
39,238
Replies
6
Views
5,784
Replies
3
Views
5,645
Replies
1
Views
3,512

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