Hello Xstore Team,
Please guide me How to Block Bad Bots? which are consuming Bandwidth.
I want to blow below bots on urgently.
facebookexternalhit
SemrushBot
You are requested to provide me some permanent solution to block such bad bots, consuming my all bandwidth.
Attached in Screenshot of bandwidth consumption by these bots.
Thanks & Regards,
Pritpal Singh
———————————————-
I already tried below in my .htaccess but never works for me.
# MY BOTS WHICH ARE CONSUMING BANDWIDTH BLOCK PRITPAL SINGH #
RewriteCond %{HTTP_USER_AGENT} ^(.*)facebookexternalhit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)SemrushBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)nbot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)feed [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(.*)BLEXBot [NC,OR]
# BLOCK Facebook Crawler
# https://endurtech.com/block-facebook-crawler-facebookexternalhit/
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^facebookexternalhit/1\.1 [NC]
RewriteRule ^ – [F,L]
# BLOCK Facebook Crawler END
—————————————————
I also tried one plugin named: “Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection” but it also done nothing and not able to block above said bots.
—————————————————-