Add the code below to your .htaccess file to forbid access to unwanted spiders. These are UA unwanted spiders. This code will also block visitors with empty UA and/or referrer. The first two UAS are from Wayback machine. If you want your site to show on Wayback machine delete: .*archive\.org_bot.*|.*Wayback\ Machine\ Live\ Record.* and start that line with .*[Dd]isco.*. Make sure no pipe "|" is before .*[Dd]isco.*.
SEC IP list is below this code.
If you want to help me catch spider IPs please send me a PM, and I will provide an image link that you can add to any site you own, and I will updated the list here. Or, I can send the updated list via email as a newsletter to those who want to subscribe.
Below is a list of Search Enginge Cloaker IPs in Regex format. I decided to use Regex because it uses less lines. I had like 1500 Ips listed before, now I only have around 250, and SEC runs faster.
SEC IP list is below this code.
If you want to help me catch spider IPs please send me a PM, and I will provide an image link that you can add to any site you own, and I will updated the list here. Or, I can send the updated list via email as a newsletter to those who want to subscribe.
Code:
################################################BLOCK BAD BOTS BELOW
RewriteCond %{HTTP_USER_AGENT} .*archive\.org_bot.*|.*Wayback\ Machine\ Live\ Record.*|.*[Dd]isco.*|.*[Jj]ava.*|.*[Nn]inja.*|.*[Nn]utch.*|.*[Ww]eb[Bb]andit.*|.*[Xx]enu.*|.*[Zz]eus.*|.*[Zz]yborg.*|.*360Spider.*|.*aboutthedomain.*|.*AhrefsBot.*|.*aiHitBot.*|.*almaden.*|.*Anarchie.*|.*ASPSeek.*|.*attach.*|.*autoemailspider.*|.*BackWeb.*|.*Bandit.*|.*BatchFTP.*|.*becomebot.*|.*BlackWidow.*|.*Blekkobot.*|.*Bot\ mailto\:craftbot\@yahoo\.com.*|.*BPImageWalker.*|.*Buddy.*|.*bumblebee.*|.*CCBot.*|.*CherryPicker.*|.*ChinaClaw.*|.*CICC.*|.*ColdFusion.*|.*Collector.*|.*Copier.*|.*CRAZYWEBCRAWLER.*|.*Crescent.*|.*curl.*|.*Custo.*|.*DA.*|.*dfbot.*|.*DigExt.*|.*DIIbot.*|.*DotBot.*|.*Download\ (Demon|Wonder).*|.*Downloader.*|.*Drip.*|.*DSurf15a.*|.*EasyDL\/2\.99.*|.*eCatch.*|.*EirGrabber.*|.*email.*|.*EmailCollector.*|.*EmailSiphon.*|.*EmailWolf.*|.*Exabot.*|.*Express\ WebPictures.*|.*ExtractorPro.*|.*EyeNetIE.*|.*facebookexternalhit.*|.*fastbot.*|.*FatBot.*|.*FileHound.*|.*FlashGet.*|.*FrontPage.*|.*fujilabolx1.*|.*GetRight.*|.*GetSmart.*|.*GetWeb\!.*|.*gigabaz.*|.*Go\!Zilla.*|.*Go\-Ahead\-Got\-It.*|.*gotit.*|.*GrabNet.*|.*Grafula.*|.*grub.*|.*HaosouSpider.*|.*HMView.*|.*HttpClient.*|.*httpdown.*|.*httrack.*|.*HTTrack.*|.*HubSpot.*|.*ia_archiver.*|.*ICC\-Crawler.*|.*Image\ Stripper.*|.*Image\ Sucker.*|.*Indy\ Library.*|.*InterGET.*|.*Internet\ Ninja.*|.*InternetLinkagent.*|.*InternetSeer.com.*|.*interseek.*|.*Iria.*|.*Jakarta.*|.*JBH*agent.*|.*JetCar.*|.*JOC\ Web\ Spider.*|.*JustView.*|.*kakaotalk\-scrap.*|.*Konqueror.*|.*Kumo.*|.*larbin.*|.*LeechFTP.*|.*LexiBot.*|.*lftp.*|.*libcurl.*|.*libwww\-perl.*|.*likse.*|.*Link*Sleuth.*|.*Link.*|.*LinkWalker.*|.*Lipperhey\-Kaus\-Australis\/5\.0.*|.*lwp.*|.*LWP\:\:Simple.*|.*lwp\-trivial.*|.*Mag\-Net.*|.*Magnet.*|.*Mail\.RU.*|.*Mass\ Downloader.*|.*MaxPointCrawler.*|.*Mechanize.*|.*MegaIndex.ru\/2\.0.*|.*Memo.*|.*Microsoft.URL.*|.*MIDown\ tool.*|.*Mirror.*|.*Mister\ PiX.*|.*MJ12bot.*|.*MSIECrawler.*|.*MozillaIndy.*|.*MozillaNEWT.*|.*MS\ FrontPage*.*|.*MSFrontPage.*|.*MSIECrawler.*|.*MSProxy.*|.*Navroad.*|.*NearSite.*|.*Net\ Vampire.*|.*NetAnts.*|.*NetcraftSurveyAgent.*|.*netEstate.*|.*NetMechanic.*|.*NetSpider.*|.*NetZIP.*|.*NICErsPRO.*|.*nutch.*|.*Octopus.*|.*Offline\ (Explorer|Navigator).*|.*OMozilla.*|.*Openfind.*|.*PageGrabber.*|.*Papa\ Foto.*|.*pavuk.*|.*pcBrowser.*|.*PHP.*|.*Ping.*|.*PingALink.*|.*Pockey.*|.*pogodak.*|.*Powermarks.*|.*psbot.*|.*Pump.*|.*Python.*|.*QRVA.*|.*RCrawler/2\.0.*|.*RealDownload.*|.*Reaper.*|.*Recorder.*|.*ReGet.*|.*Ruby.*|.*scooter.*|.*ScoutJet.*|.*Screaming\ Frog\ SEO\ Spider.*|.*Seeker.*|.*SemrushBot.*|.*SEOkicks\-Robot.*|.*sidewinder.*|.*Siphon.*|.*sitecheck.internetseer.com.*|.*SiteSnagger.*|.*SlySearch.*|.*SmartDownload.*|.*Snake.*|.*Sogou\ web\ spider.*|.*SpaceBison.*|.*spbot.*|.*spbot/4\.4\.2.*|.*spider.*|.*sproose.*|.*Stratagems.*|.*Stripper.*|.*Sucker.*|.*SuperBot.*|.*SuperHTTP.*|.*Surfbot.*|.*SurveyBot.*|.*Szukacz.*|.*taiil.*|.*tAkeOut.*|.*Teleport\ Pro.*|.*tridentspider.*|.*Ubuntu.*|.*URLSpiderPro.*|.*Vacuum.*|.*VoidEYE.*|.*W3C_Validator.*|.*WBSearchBot.*|.*WBSearchBot\/1\.1.*|.*Web\ Downloader.*|.*Web\ Image\ Collector.*|.*Web\ Sucker.*|.*WebAuto.*|.*WebCapture.*|.*webcollage.*|.*WebCopier.*|.*WebEMailExtrac.*|.*WebFetch.*|.*WebGo\ IS.*|.*WebHook.*|.*WebLeacher.*|.*WebMirror.*|.*WebReaper.*|.*WebSauger.*|.*Website.*|.*Website\ (eXtractor|Quester).*|.*Webster.*|.*WebStripper.*|.*WebWhacker.*|.*WebZIP.*|.*Wget.*|.*Whacker.*|.*Widow.*|.*WinHttp\.WinHttpRequest\.5.*|.*woobot.*|.*Wotbox.*|.*WWWOFFLE.*|.*x\-Tractor.*|.*Xaldon\ WebSpider.*|.*XoviBot\/2\.0.*|.*YodaoBot.*|.*ZeusWebster.*
RewriteCond %{HTTP_REFERER} ^$ [NC]
RewriteCond %{HTTP_USER_AGENT} ^$ [NC]
RewriteRule ^.* - [F,L]
################################################BLOCK BAD BOTS ABOVE
Below is a list of Search Enginge Cloaker IPs in Regex format. I decided to use Regex because it uses less lines. I had like 1500 Ips listed before, now I only have around 250, and SEC runs faster.
Code:
209.73.(19[01]|1[6-8][0-9]).[0-9]{1,3} #Altavista
216.39.(6[0-3]|5[0-9]|4[89]).[0-9]{1,3} #Altavista
111.13.102.[0-9]{1,3} #Baidu
119.63.19[2-9].[0-9]{1,3} #Baidu
119.63.196.[0-9]{1,3} #Baidu
119.63.199.[0-9]{1,3} #Baidu
122.81.(21[01]|20[89]).[0-9]{1,3} #Baidu
123.125.67.(15[01]|14[4-9]) #Baidu
123.125.67.15[23] #Baidu
123.125.68.[0-9]{1,3} #Baidu
123.125.68.(7[01]|6[89]) #Baidu
123.125.68.7[2-9] #Baidu
123.125.68.(9[0-5]|8[0-9]) #Baidu
123.125.68.8[0-3] #Baidu
123.125.68.8[45] #Baidu
123.125.68.9[6-9] #Baidu
123.125.71.[0-9]{1,3} #Baidu
125.39.7[89].[0-9]{1,3} #Baidu
180.76.[0-9]{1,3}.[0-9]{1,3} #Baidu
180.76.15.[0-9]{1,3} #Baidu
180.76.4.[0-9]{1,3} #Baidu
180.76.5.[0-9]{1,3} #Baidu
180.76.6.[0-9]{1,3} #Baidu
185.10.104.[0-9]{1,3} #Baidu
202.46.(6[0-3]|[45][0-9]|3[2-9]).[0-9]{1,3} #Baidu
202.46.(6[0-3]|5[0-9]|4[89]).[0-9]{1,3} #Baidu
220.181.108.[0-9]{1,3} #Baidu
220.181.38.[0-9]{1,3} #Baidu
220.181.51.[0-9]{1,3} #Baidu
61.135.169.[0-9]{1,3} #Baidu
203.208.(6[0-3]|[45][0-9]|3[2-9]).[0-9]{1,3} #Google
203.208.60.[0-9]{1,3} #Google
209.85.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]).[0-9]{1,3} #Google
209.85.238.[0-9]{1,3} #Google
216.239.(6[0-3]|[45][0-9]|3[2-9]).[0-9]{1,3} #Google
216.3[2-5].[0-9]{1,3}.[0-9]{1,3} #Google
64.233.(19[01]|1[6-8][0-9]).[0-9]{1,3} #Google
64.68.8[0-7].[0-9]{1,3} #Google
66.249.(9[0-5]|[78][0-9]|6[4-9]).[0-9]{1,3} #Google
66.249.(7[0-9]|6[4-9]).[0-9]{1,3} #Google
66.249.90.[0-9]{1,3} #Google
66.249.91.[0-9]{1,3} #Google
66.249.92.[0-9]{1,3} #Google
72.14.(25[0-5]|2[0-4][0-9]|19[2-9]).[0-9]{1,3} #Google
72.14.199.[0-9]{1,3} #Google
8.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3} #Google
8.6.(5[0-5]|4[89]).[0-9]{1,3} #Google
198.5.(21[01]|20[89]).[0-9]{1,3} #Infoseek
205.226.20[0-7].[0-9]{1,3} #Infoseek
66.196.(12[0-7]|1[01][0-9]|[7-9][0-9]|6[4-9]).[0-9]{1,3} #Inktomi
68.142.(25[0-5]|2[0-4][0-9]|19[2-9]).[0-9]{1,3} #Inktomi
74.6.[0-9]{1,3}.[0-9]{1,3} #Inktomi
209.202.(25[0-5]|2[0-4][0-9]|19[2-9]).[0-9]{1,3} #Lycos
131.107.[0-9]{1,3}.[0-9]{1,3} #Microsoft
131.253.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]).[0-9]{1,3} #Microsoft
131.253.2[4-7].[0-9]{1,3} #Microsoft
131.253.4[67].[0-9]{1,3} #Microsoft
131.253.61.[0-9]{1,3} #Microsoft
131.253.6[23].[0-9]{1,3} #Microsoft
131.253.(12[0-7]|1[01][0-9]|[7-9][0-9]|6[4-9]).[0-9]{1,3} #Microsoft
157.5[45].[0-9]{1,3}.[0-9]{1,3} #Microsoft
157.55.109.[0-9]{1,3} #Microsoft
157.55.110.4[0-7] #Microsoft
157.55.110.(6[0-3]|5[0-9]|4[89]) #Microsoft
157.55.1[67].[0-9]{1,3} #Microsoft
157.55.18.[0-9]{1,3} #Microsoft
157.55.3[2-5].[0-9]{1,3} #Microsoft
157.55.36.[0-9]{1,3} #Microsoft
157.55.39.[0-9]{1,3} #Microsoft
157.55.48.[0-9]{1,3} #Microsoft
157.5[6-9].[0-9]{1,3}.[0-9]{1,3} #Microsoft
157.56.229.[0-9]{1,3} #Microsoft
157.56.92.[0-9]{1,3} #Microsoft
157.56.93.[0-9]{1,3} #Microsoft
157.56.9[45].[0-9]{1,3} #Microsoft
157.60.[0-9]{1,3}.[0-9]{1,3} #Microsoft
199.30.(3[01]|2[0-9]|1[6-9]).[0-9]{1,3} #Microsoft
199.30.16.[0-9]{1,3} #Microsoft
199.30.27.[0-9]{1,3} #Microsoft
202.96.51.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]) #Microsoft
204.95.(11[01]|10[0-9]|9[6-9]).[0-9]{1,3} #Microsoft
207.46.[0-9]{1,3}.[0-9]{1,3} #Microsoft
207.46.0.[0-9]{1,3} #Microsoft
207.46.1[23].[0-9]{1,3} #Microsoft
207.46.192.[0-9]{1,3} #Microsoft
207.46.195.[0-9]{1,3} #Microsoft
207.46.199.[0-9]{1,3} #Microsoft
207.46.204.[0-9]{1,3} #Microsoft
207.68.(19[01]|1[3-8][0-9]|12[89]).[0-9]{1,3} #Microsoft
208.68.(14[0-3]|13[6-9]).[0-9]{1,3} #Microsoft
213.199.(14[0-3]|13[0-9]|12[89]).[0-9]{1,3} #Microsoft
219.142.53.(12[0-7]|1[01][0-9]|[1-9]?[0-9]) #Microsoft
40.11[2-9].[0-9]{1,3}.[0-9]{1,3} #Microsoft
40.12[0-3].[0-9]{1,3}.[0-9]{1,3} #Microsoft
40.124.[0-9]{1,3}.[0-9]{1,3} #Microsoft
40.125.(12[0-7]|1[01][0-9]|[1-9]?[0-9]).[0-9]{1,3} #Microsoft
40.7[45].[0-9]{1,3}.[0-9]{1,3} #Microsoft
40.7[6-9].[0-9]{1,3}.[0-9]{1,3} #Microsoft
40.77.167.[0-9]{1,3} #Microsoft
40.(9[0-5]|8[0-9]).[0-9]{1,3}.[0-9]{1,3} #Microsoft
40.(11[01]|10[0-9]|9[6-9]).[0-9]{1,3}.[0-9]{1,3} #Microsoft
64.4.(6[0-3]|[1-5]?[0-9]).[0-9]{1,3} #Microsoft
65.5[2-5].[0-9]{1,3}.[0-9]{1,3} #Microsoft
65.52.104.[0-9]{1,3} #Microsoft
65.52.(11[01]|10[89]).[0-9]{1,3} #Microsoft
65.55.213.[0-9]{1,3} #Microsoft
65.55.217.[0-9]{1,3} #Microsoft
65.55.24.[0-9]{1,3} #Microsoft
65.55.52.[0-9]{1,3} #Microsoft
65.55.55.[0-9]{1,3} #Microsoft
114.111.95.[0-9]{1,3} #Yahoo
124.83.159.[0-9]{1,3} #Yahoo
124.83.179.[0-9]{1,3} #Yahoo
124.83.223.[0-9]{1,3} #Yahoo
183.79.[0-9]{1,3}.[0-9]{1,3} #Yahoo
183.79.63.[0-9]{1,3} #Yahoo
183.79.92.[0-9]{1,3} #Yahoo
202.160.(19[01]|18[0-9]|17[6-9]).[0-9]{1,3} #Yahoo
202.165.(11[01]|10[0-9]|9[6-9]).[0-9]{1,3} #Yahoo
202.46.19.[0-9]{1,3} #Yahoo
203.141.(4[0-7]|3[2-9]).[0-9]{1,3} #Yahoo
203.216.255.[0-9]{1,3} #Yahoo
206.190.(6[0-3]|[45][0-9]|3[2-9]).[0-9]{1,3} #Yahoo
206.3.(3[01]|[12]?[0-9]).[0-9]{1,3} #Yahoo
207.126.(23[0-9]|22[4-9]).[0-9]{1,3} #Yahoo
209.131.(6[0-3]|[45][0-9]|3[2-9]).[0-9]{1,3} #Yahoo
209.191.(12[0-7]|1[01][0-9]|[7-9][0-9]|6[4-9]).[0-9]{1,3} #Yahoo
210.236.233.[0-9]{1,3} #Yahoo
211.13.230.[0-9]{1,3} #Yahoo
211.14.11.[0-9]{1,3} #Yahoo
211.14.8.[0-9]{1,3} #Yahoo
216.109.(12[0-7]|11[2-9]).[0-9]{1,3} #Yahoo
216.136.23[2-5].[0-9]{1,3} #Yahoo
216.145.(6[0-3]|5[0-9]|4[89]).[0-9]{1,3} #Yahoo
216.155.(20[0-7]|19[2-9]).[0-9]{1,3} #Yahoo
63.163.102.[0-9]{1,3} #Yahoo
64.157.13[6-9].[0-9]{1,3} #Yahoo
66.163.(19[01]|1[6-8][0-9]).[0-9]{1,3} #Yahoo
66.196.(12[0-7]|1[01][0-9]|[7-9][0-9]|6[4-9]).[0-9]{1,3} #Yahoo
66.218.(9[0-5]|[78][0-9]|6[4-9]).[0-9]{1,3} #Yahoo
66.228.(19[01]|1[6-8][0-9]).[0-9]{1,3} #Yahoo
66.94.(25[0-5]|2[34][0-9]|22[4-9]).[0-9]{1,3} #Yahoo
67.195.[0-9]{1,3}.[0-9]{1,3} #Yahoo
67.195.110.[0-9]{1,3} #Yahoo
67.195.111.[0-9]{1,3} #Yahoo
67.195.11[23].[0-9]{1,3} #Yahoo
67.195.114.[0-9]{1,3} #Yahoo
67.195.115.[0-9]{1,3} #Yahoo
67.195.37.[0-9]{1,3} #Yahoo
67.195.50.[0-9]{1,3} #Yahoo
68.142.(25[0-5]|2[0-4][0-9]|19[2-9]).[0-9]{1,3} #Yahoo
68.180.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]).[0-9]{1,3} #Yahoo
68.180.(23[01]|22[4-9]).[0-9]{1,3} #Yahoo
69.147.(12[0-7]|1[01][0-9]|[7-9][0-9]|6[4-9]).[0-9]{1,3} #Yahoo
72.30.[0-9]{1,3}.[0-9]{1,3} #Yahoo
72.30.132.[0-9]{1,3} #Yahoo
72.30.142.[0-9]{1,3} #Yahoo
72.30.161.[0-9]{1,3} #Yahoo
72.30.196.[0-9]{1,3} #Yahoo
72.30.198.[0-9]{1,3} #Yahoo
74.6.[0-9]{1,3}.[0-9]{1,3} #Yahoo
74.6.13.[0-9]{1,3} #Yahoo
74.6.17.[0-9]{1,3} #Yahoo
74.6.18.[0-9]{1,3} #Yahoo
74.6.22.[0-9]{1,3} #Yahoo
74.6.254.[0-9]{1,3} #Yahoo
74.6.27.[0-9]{1,3} #Yahoo
74.6.8.[0-9]{1,3} #Yahoo
98.13[6-9].[0-9]{1,3}.[0-9]{1,3} #Yahoo
98.137.206.[0-9]{1,3} #Yahoo
98.137.207.[0-9]{1,3} #Yahoo
98.137.72.[0-9]{1,3} #Yahoo
98.139.168.[0-9]{1,3} #Yahoo
100.43.(9[0-5]|[78][0-9]|6[4-9]).[0-9]{1,3} #Yandex
100.43.80.[0-9]{1,3} #Yandex
100.43.81.[0-9]{1,3} #Yandex
100.43.85.[0-9]{1,3} #Yandex
100.43.90.[0-9]{1,3} #Yandex
100.43.91.[0-9]{1,3} #Yandex
130.193.62.[0-9]{1,3} #Yandex
141.8.143.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]) #Yandex
141.8.153.[0-9]{1,3} #Yandex
141.8.153.(12[0-7]|11[2-9]) #Yandex
178.154.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]).[0-9]{1,3} #Yandex
178.154.165.[0-9]{1,3} #Yandex
178.154.166.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]) #Yandex
178.154.200.[0-9]{1,3} #Yandex
178.154.202.[0-9]{1,3} #Yandex
178.154.205.[0-9]{1,3} #Yandex
178.154.21[01].[0-9]{1,3} #Yandex
178.154.239.[0-9]{1,3} #Yandex
178.154.243.[0-9]{1,3} #Yandex
199.21.9[6-9].[0-9]{1,3} #Yandex
199.21.99.[0-9]{1,3} #Yandex
213.180.(22[0-3]|2[01][0-9]|19[2-9]).[0-9]{1,3} #Yandex
213.180.(20[0-7]|19[2-9]).[0-9]{1,3} #Yandex
213.180.(21[0-5]|20[89]).[0-9]{1,3} #Yandex
213.180.21[6-9].[0-9]{1,3} #Yandex
37.140.141.[0-9]{1,3} #Yandex
37.140.165.[0-9]{1,3} #Yandex
37.140.188.[0-9]{1,3} #Yandex
37.9.115.[0-9]{1,3} #Yandex
37.9.8[4-7].[0-9]{1,3} #Yandex
5.255.253.[0-9]{1,3} #Yandex
5.45.254.[0-9]{1,3} #Yandex
77.88.(6[0-3]|[1-5]?[0-9]).[0-9]{1,3} #Yandex
77.88.22.(12[0-7]|1[01][0-9]|[1-9]?[0-9]) #Yandex
77.88.29.[0-9]{1,3} #Yandex
77.88.31.[0-9]{1,3} #Yandex
77.88.59.[0-9]{1,3} #Yandex
84.201.146.[0-9]{1,3} #Yandex
84.201.148.[0-9]{1,3} #Yandex
84.201.149.[0-9]{1,3} #Yandex
87.250.(25[0-5]|2[34][0-9]|22[4-9]).[0-9]{1,3} #Yandex
87.250.243.[0-9]{1,3} #Yandex
87.250.253.[0-9]{1,3} #Yandex
93.158.147.[0-9]{1,3} #Yandex
93.158.148.[0-9]{1,3} #Yandex
93.158.151.[0-9]{1,3} #Yandex
93.158.153.[0-9]{1,3} #Yandex
95.108.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]).[0-9]{1,3} #Yandex
95.108.128.[0-9]{1,3} #Yandex
95.108.138.[0-9]{1,3} #Yandex
95.108.15[01].[0-9]{1,3} #Yandex
95.108.156.[0-9]{1,3} #Yandex
95.108.158.[0-9]{1,3} #Yandex
95.108.188.(25[0-5]|2[0-4][0-9]|1[3-9][0-9]|12[89]) #Yandex
95.108.234.[0-9]{1,3} #Yandex
95.108.24[67].[0-9]{1,3} #Yandex
95.108.248.[0-9]{1,3} #Yandex
95.158.(19[01]|1[3-8][0-9]|12[89]).[0-9]{1,3} #Yandex