@@ -185,14 +185,15 @@ const processPhihsingDomains = cache(function processPhihsingDomains(domainArr:
185
185
|| ( domainScoreMap [ apexDomain ] >= 13 && count >= 11 )
186
186
|| ( domainScoreMap [ apexDomain ] >= 5 && count >= 14 )
187
187
|| ( domainScoreMap [ apexDomain ] >= 3 && count >= 21 )
188
+ || ( domainScoreMap [ apexDomain ] >= 1 && count >= 60 )
188
189
) {
189
190
domainArr . push ( '.' + apexDomain ) ;
190
191
}
191
192
} ) ;
192
193
193
194
// console.log({
194
- // score: domainScoreMap['flk-ipfs.xyz '],
195
- // count: domainCountMap.get('flk-ipfs.xyz ')
195
+ // score: domainScoreMap['awicksin.com '],
196
+ // count: domainCountMap.get('awicksin.com ')
196
197
// });
197
198
198
199
// console.log({ duplicateCount, domainArrLen: domainArr.length });
@@ -247,20 +248,24 @@ export function calcDomainAbuseScore(subdomain: string, fullDomain: string = sub
247
248
248
249
const subdomainLength = subdomain . length ;
249
250
250
- if ( subdomainLength > 13 ) {
251
- weight += 0.2 ;
252
- if ( subdomainLength > 20 ) {
253
- weight += 1 ;
254
- if ( subdomainLength > 30 ) {
255
- weight += 5 ;
256
- if ( subdomainLength > 40 ) {
257
- weight += 10 ;
251
+ if ( subdomainLength > 6 ) {
252
+ weight += 0.015 ;
253
+
254
+ if ( subdomainLength > 13 ) {
255
+ weight += 0.2 ;
256
+ if ( subdomainLength > 20 ) {
257
+ weight += 1 ;
258
+ if ( subdomainLength > 30 ) {
259
+ weight += 5 ;
260
+ if ( subdomainLength > 40 ) {
261
+ weight += 10 ;
262
+ }
258
263
}
259
264
}
260
- }
261
265
262
- if ( subdomain . indexOf ( '.' , 1 ) > 1 ) {
263
- weight += 1 ;
266
+ if ( subdomain . indexOf ( '.' , 1 ) > 1 ) {
267
+ weight += 1 ;
268
+ }
264
269
}
265
270
}
266
271
0 commit comments