mirror of
https://github.com/FlipsideCrypto/eth-phishing-detect.git
synced 2026-02-06 11:16:45 +00:00
remove fake news website bittreat bc they asked and doesnt seem overly bad
This commit is contained in:
parent
088179d330
commit
dbad12039b
@ -78,7 +78,6 @@
|
||||
"cryptoalliance.herokuapp.com",
|
||||
"bitspark2.com",
|
||||
"indorsetoken.com",
|
||||
"bittreat.com",
|
||||
"iconexus.tk",
|
||||
"iconexus.ml",
|
||||
"iconexus.ga",
|
||||
|
||||
@ -13,6 +13,7 @@ const detector = new PhishingDetector(config)
|
||||
const metamaskGaq = loadMetamaskGaq()
|
||||
let mewBlacklist, mewWhitelist
|
||||
let ealBlacklist, ealWhitelist
|
||||
const remoteBlacklistException = ['bittreat.com']
|
||||
|
||||
// load MEW blacklist
|
||||
mapValues({
|
||||
@ -27,6 +28,9 @@ mapValues({
|
||||
mewWhitelist = results.mewWhitelist.map(entry => entry.id).filter((domain) => !domain.includes('/')).map(punycode.toASCII)
|
||||
ealBlacklist = results.ealBlacklist.filter((domain) => !domain.includes('/')).map(punycode.toASCII)
|
||||
ealWhitelist = results.ealWhitelist.filter((domain) => !domain.includes('/')).map(punycode.toASCII)
|
||||
// remove exceptions
|
||||
mewBlacklist = mewBlacklist.filter((domain) => !domain.includes(remoteBlacklistException))
|
||||
ealBlacklist = ealBlacklist.filter((domain) => !domain.includes(remoteBlacklistException))
|
||||
startTests()
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user