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,835
Replies
2
Views
1,199
Replies
2
Views
2,250
Replies
3
Views
1,495
Newer threads
Replies
0
Views
2,823
Replies
2
Views
1,170
Latest threads
Replies
1
Views
107
Replies
1
Views
130
Replies
1
Views
247
Replies
0
Views
257
Replies
0
Views
267

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