|
8 | 8 | * License: GNU/GPLv2 |
9 | 9 | * @see LICENSE.txt |
10 | 10 | * |
11 | | - * This file: Bad hosts blocker module (last modified: 2025.02.13). |
| 11 | + * This file: Bad hosts blocker module (last modified: 2025.07.27). |
12 | 12 | * |
13 | 13 | * False positive risk (an approximate, rough estimate only): « [ ]Low [x]Medium [ ]High » |
14 | 14 | */ |
|
63 | 63 | $UA = str_replace('\\', '/', strtolower(urldecode($CIDRAM['BlockInfo']['UA']))); |
64 | 64 | $UANoSpace = preg_replace('/\s/', '', $UA); |
65 | 65 |
|
66 | | - $Trigger(preg_match( |
67 | | - '/\$(?:globals|_(?:cookie|env|files|get|post|request|server|session))/', |
68 | | - $HN |
69 | | - ), 'Banned hostname'); // 2017.01.21 mod 2022.11.23 |
| 66 | + $Trigger(preg_match('/\$(?:globals|_(?:cookie|env|files|get|post|request|server|session))/', $HN), 'Banned hostname'); // 2017.01.21 mod 2022.11.23 |
70 | 67 |
|
71 | | - $Trigger(preg_match( |
72 | | - '/(?:<(\?|body|i?frame|object|script)|(body|i?frame|object|script)>)/', |
73 | | - $HN |
74 | | - ), 'Hostname script injection'); // 2017.01.21 |
| 68 | + $Trigger(preg_match('/(?:<(\?|body|i?frame|object|script)|(body|i?frame|object|script)>)/', $HN), 'Hostname script injection'); // 2017.01.21 |
75 | 69 |
|
76 | 70 | $Trigger(preg_match('~captch|dbcapi\.me~', $HN), 'CAPTCHA cracker host'); // 2017.01.21 |
77 | 71 |
|
|
97 | 91 | $Trigger(preg_match('~exatt\.net$|unpef\.org$~', $HN), 'Pornobot/Pornhost'); // 2017.02.16 |
98 | 92 |
|
99 | 93 | $Trigger(preg_match( |
100 | | - '~^(?:damage|moon|test)\.|anahaqq|core\.youtu\.me|hosted-(?:by|in)|n' . |
101 | | - 'o-(?:data|(?:reverse-)?r?dns)|qeas|spletnahisa|therewill\.be|unassi' . |
102 | | - 'gned|work\.from|yhost\.name~', |
| 94 | + '~^(?:damage|moon|test)\.|anahaqq|core\.youtu\.me|fuc' . 'kyou|hoste' . |
| 95 | + 'd-(?:by|in)|no-(?:data|(?:reverse-)?r?dns)|qeas|spletnahisa|therewi' . |
| 96 | + 'll\.be|unassigned|work\.from|yhost\.name~', |
103 | 97 | $HN |
104 | | - ), 'Questionable Host'); // 2017.01.30 mod 2020.11.09 |
| 98 | + ), 'Questionable Host'); // 2017.01.30 mod 2025.07.27 |
105 | 99 |
|
106 | 100 | $Trigger(preg_match('~anchorfree|hotspotsheild|esonicspider\.com$~', $HN), 'Hostile/esonicspider'); // 2018.09.15 |
107 | 101 |
|
108 | | - $Trigger(preg_match( |
109 | | - '~megacom\.biz$|ideastack\.com$|dotnetdotcom\.org$|controlyourself\.online~', |
110 | | - $HN |
111 | | - ), 'Hostile/Unauthorised'); // 2017.02.14 mod 2021.06.28 |
112 | | - |
113 | 102 | $Trigger(preg_match('~brandaffinity~', $HN), 'Hostile/SLAPP'); // 2018.09.15 |
114 | 103 |
|
115 | 104 | if ( |
116 | | - // Caught attempting to brute-force WordPress logins (2020.11.09). |
117 | | - $Trigger(preg_match('~\.domainserver\.ne\.jp$~', $HN), 'Cloud/Webhosting') || |
118 | | - |
119 | | - // 2022.12.19 mod 2025.02.13 |
120 | | - $Trigger(preg_match( |
121 | | - '~i(?:g|nsite)\.com\.br$|terra\.cl$|acetrophies\.co\.uk$|adsinmedia\.co\.' . |
122 | | - 'in$|(?:webfusion|xcalibre)\.co\.uk$|(?:\.(?:appian|cloud|ctera|dyn|emc|f' . |
123 | | - 'orce|fsfreeware|gnip|gridlayer|hosting|icims|panorama|parallels|quest|si' . |
124 | | - 'teprotect|thegridlayer|voda|vultr|webzilla|workday)|10gen|12designer|3le' . |
125 | | - 'afsystems|3tera|a(?:cademicedge|ccentrainc|conex|dvologix|gathon|ltornet' . |
126 | | - 'works|mericanforeclosures|mitive|pp(?:irio|istry|jet|nexus|renda|spot|ze' . |
127 | | - 'ro)|ptana|ramenet|riasystems|rjuna|rtofdefence|sterdata|syanka|uthenticn' . |
128 | | - 'etworks|zati)|b(?:alticservers|eam4d|hivesoft|irtondemand|linklogic|lue(' . |
129 | | - '?:host|lock|wolf)|oomi|ucketexplorer|ungeeconnect)|c(?:a(?:dinor|msoluti' . |
130 | | - 'onsinc|spio|ssatt|stiron)|l(?:arioanalytics|ickability|oud(?:42|9analyti' . |
131 | | - 'cs|computingchina|control|era|foundry|kick|scale|status|switch|works)|us' . |
132 | | - 'terseven)|o(?:ghead|hesiveft|ldlightsolutions|ncur|ntroltier)|tinets|ybe' . |
133 | | - 'r-freaks)|d(?:ata(?:line|sisar|synaps)|ailyrazor|edicatedpanel|inaserver' . |
134 | | - '|irectlaw|ns-safe|oclanding|ropbox|ynamsoft)|e(?:last(?:ichosts|ra)|n(?:' . |
135 | | - 'gineyard|omalism|stratus)|telos|ucalyptus|vapt|vionet)|fathomdb|flexisca' . |
136 | | - 'le|followmeoffice|g(?:emstone|enerositycool|igaspaces|ogrid|othamdating|' . |
137 | | - 'roupcross)|h(?:eroku|exagrid|olhost|ost(?:acy|cats|ing24)|ubspan|yperic)' . |
138 | | - '|i(?:buzytravel|modrive|nfo(?:bright|rmatica)|tricityhosting)|j(?:oyent|' . |
139 | | - 'umpbox|unglebox|usthost)|k(?:2analytics|aavo|eynote|nowledgetree)|l(?:ay' . |
140 | | - 'eredtech|inkneo|iveops|oadstorm|ogixml|ongjump|tdomains)|m(?:o(?:derro|j' . |
141 | | - 'site|rphexchange|sso|zy)|idphase|idnight-monkey|turk|ulesoft)|n(?:asstar' . |
142 | | - '|e(?:ointeractiva|t(?:app|documents|suite|topia)|wrelic|wservers)|ionex|' . |
143 | | - 'irvanix|ovatium|scaled)|o(?:co-inc|nelogin|npathtech|penqrm|psource)|p(?' . |
144 | | - ':ara(?:scal|tur)e|hatservers|hishmongers|iemontetv|inqidentity|ivotlink|' . |
145 | | - 'luraprocessing)|q(?:layer|rimp|uanti(?:vo|x-uk))|r(?:ackspace(?:cloud)?|' . |
146 | | - 'e(?:di2|ductivelabs|lia(?:blehosting|cloud)|sponsys)|ight(?:now|scale)|o' . |
147 | | - 'llbase|omania-webhosting|path)|s(?:alesforce|avvis|ertifi|erver306|huili' . |
148 | | - 'nchi|kytap|martservercontrol|naplogic|oasta|pringcm|tax|treetsmarts|tret' . |
149 | | - 'choid|uccessmetrics|wifttrim|ymplified|yncplicity)|t(?:aleo|err[ae]mark|' . |
150 | | - 'h(?:eprocessfactory|inkgos|oughtexpress)|rustsaas)|utilitystatus|v(?:aul' . |
151 | | - 'tscape|ertica|mware|ordel)|web(?:faction|hosting\.uk|hostinghub|scalesol' . |
152 | | - 'utions|sitewelcome)|xactlycorp|xlhost|xythos|z(?:embly|imory|manda|oho|u' . |
153 | | - 'ora))\.com$|server4u\.cz$|(?:(?:\.|kunden)server|clanmoi|fastwebserver|o' . |
154 | | - 'ptimal|server4you|your-server)\.de$|candycloud\.eu$|cyberresilience\.io$' . |
155 | | - '|server\.lu$|starnet\.md$|(?:\.(?:above|akpackaging|bhsrv|box|propagatio' . |
156 | | - 'n|voxel)|1978th|collab|enkiconsulting|incrediserve|jkserv|recyber|reliab' . |
157 | | - 'lesite|shared-server|techajans)\.net$|hitech-hosting\.nl$|(?:\.terracott' . |
158 | | - 'a|beowulf|iboss|opennebula|xen)\.org$|mor\.ph$|(?:ogicom|vampire)\.pl$|(' . |
159 | | - '?:serverhub|rivreg|tkvprok|vpsnow|vympelstroy)\.ru$|g\.ho\.st$~', |
160 | | - $HN |
161 | | - ), 'Cloud/Webhosting') || |
162 | | - |
163 | | - // 2022.06.22 |
164 | | - $Trigger(preg_match('~\.google(?:domains|usercontent)\.com$~', $HN), 'Google user content not permitted here') |
| 105 | + $Trigger(preg_match('~\.google(?:domains|usercontent)\.com$~', $HN), 'Google user content not permitted here') // 2022.06.22 |
165 | 106 | ) { |
166 | 107 | $CIDRAM['AddProfileEntry']('Webhosting'); |
167 | 108 | } |
|
170 | 111 | $CIDRAM['AddProfileEntry']('VPNs here'); |
171 | 112 | } // 2023.08.12 |
172 | 113 |
|
173 | | - $Trigger(preg_match( |
174 | | - '~(?:(?:criminalip|dimenoc|dumpyourbitch|hostenko|internetserviceteam|ipr' . |
175 | | - 'edator|krypt|webandnetworksolutions|xcelmg)\.com|mbox\.kz|doctore\.sk|ho' . |
176 | | - 'stnoc\.net|\.(?:host|spheral)\.ru)$|45ru\.net\.au|p(?:rohibitivestuff|wn)~', |
177 | | - $HN |
178 | | - ), 'Dangerous Host'); // 2022.06.24 mod 2022.12.19 |
179 | | - |
180 | 114 | $Trigger(preg_match('~shadowserver\.org$~', $HN), 'Regular unauthorised proxy tunnel attempts'); // 2023.09.15 |
181 | 115 |
|
182 | 116 | $Trigger(preg_match( |
183 | 117 | '~(?:iweb|privatedns)\.com$|iweb\.ca$|^(?:www\.)?iweb~', |
184 | 118 | $HN |
185 | 119 | ), 'Domain Snipers'); // 2017.02.15 mod 2021.06.28 |
186 | 120 |
|
187 | | - $Trigger(preg_match('~(?<!ssg-corp\.)zetta\.net$|(?<!\.user\.)veloxzone\.com\.br$|12bot\.com$~', $HN), 'Server farm'); // 2022.12.19 |
188 | | - |
189 | | - $Trigger(preg_match( |
190 | | - '~(?:starlogic|temka)\.biz$|ethymos\.com\.br$|(?:amplilogic|astranig' . |
191 | | - 'ht|borderfreehosting|creatoor|dl-hosting|hosting-ie|idknet|ipilum|k' . |
192 | | - 'uzbass|prommorpg|uxxicom|vdswin|x-svr)\.com$|(?:ahost01|efdns|em-zw' . |
193 | | - 'o|haebdler-treff|key(account|mars64)|mail\.adc|rootbash|securewebse' . |
194 | | - 'rver|tagdance|traders-briefing|vilitas|w-4)\.de$|(?:hostrov|kemhost' . |
195 | | - '|netorn|power-web34|profithost|volia)\.net$|cssgroup\.lv|(?:nasza-k' . |
196 | | - 'lasa|softel\.com)\.pl$|(?:corbina|cpms|datapoint|elsv-v|hc|itns|lim' . |
197 | | - 't|majordomo|mtu-net|netorn|nigma|relan|spb|totalstat)\.ru|(?:(?:cos' . |
198 | | - 'monova|sovam|utel)\.net|odessa|poltava|rbn\.com|volia)\.ua$|aceleo|' . |
199 | | - 'dedibox|filmefashion|infobox|key(?:machine|server|web)|kyklo|laycat' . |
200 | | - '|oliro~', |
201 | | - $HN |
202 | | - ), 'RBN'); // 2017.02.06 mod 2021.06.28 |
203 | | - |
204 | 121 | $Trigger(preg_match('~amazonaws\.com$~', $HN) && ( |
205 | 122 | !preg_match( |
206 | 123 | '~alexa|postrank|twitt(?:urly|erfeed)|bitlybot|unwindfetchor|met' . |
|
275 | 192 | ); // 2018.06.24 |
276 | 193 |
|
277 | 194 | /** Conjunctive reporting. */ |
278 | | - if (preg_match('~Spoofed/Fake Hostname|Dangerous Host|Questionable Host|DNS error~i', $CIDRAM['BlockInfo']['WhyReason'])) { |
| 195 | + if (preg_match('~Spoofed/Fake Hostname|Questionable Host|DNS error~i', $CIDRAM['BlockInfo']['WhyReason'])) { |
279 | 196 | $CIDRAM['Reporter']->report([20], [], $CIDRAM['BlockInfo']['IPAddr']); |
280 | 197 | } |
281 | 198 | if (preg_match('~(?:VPN|Proxy) Host~i', $CIDRAM['BlockInfo']['WhyReason'])) { |
|
0 commit comments