aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/phishing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/phishing.lua')
-rw-r--r--src/plugins/lua/phishing.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua
index 11363953c..ec9b9d2ad 100644
--- a/src/plugins/lua/phishing.lua
+++ b/src/plugins/lua/phishing.lua
@@ -136,7 +136,7 @@ local function phishing_cb(task)
if #redirector_domains > 0 then
for _,rule in ipairs(redirector_domains) do
- if rule['map']:get_key(url:get_tld()) then
+ if rule['map']:get_key(tld) or rule['map']:get_key(url:get_host()) then
task:insert_result(rule['symbol'], weight, ptld .. '->' .. tld)
found = true
end
@@ -144,7 +144,7 @@ local function phishing_cb(task)
end
if not found and #strict_domains > 0 then
for _,rule in ipairs(strict_domains) do
- if rule['map']:get_key(ptld) then
+ if rule['map']:get_key(ptld) or rule['map']:get_key(purl:get_host()) then
task:insert_result(rule['symbol'], 1.0, ptld .. '->' .. tld)
found = true
end