diff --git a/xioc/funcs.go b/xioc/funcs.go index 9ad22cb..b854ca7 100644 --- a/xioc/funcs.go +++ b/xioc/funcs.go @@ -140,6 +140,11 @@ func ExtractURLs(text string) []string { url = strings.Replace(url, ":// ", "://", -1) url = strings.Replace(url, "[com]", "com", -1) + if !strings.Contains(url, ".") && // check for domain without mutual calls + len(ExtractIPv4s(url)) == 0 && + len(ExtractIPv6s(url)) == 0 { + continue + } if !resultSet[url] { resultSet[url] = true diff --git a/xioc/tests.json b/xioc/tests.json index 85d4be9..b29e8fe 100644 --- a/xioc/tests.json +++ b/xioc/tests.json @@ -555,4 +555,6 @@ "urls": ["http://feeds.rapidfeeds.com/88604/"], "domains": ["feeds.rapidfeeds.com"] }, + "ed to enter http:// or https:// or www.). Clic": {}, + "http://:": {} }