Skip to content
Snippets Groups Projects
Verified Commit d04bb51a authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Improve detection of tainted Yandex domains

parent 926d49d1
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ var Interceptor = new Class({
httpChannel.loadInfo && httpChannel.loadInfo.loadingDocument && httpChannel.loadInfo.loadingDocument.domain ||
httpChannel.referrer && httpChannel.referrer.host;
if (storage.taintedDomains[initiatorDomain]) {
if (storage.taintedDomains[initiatorDomain] || /yandex\./.test(initiatorDomain)) {
return this.handleMissingCandidate(httpChannel);
}
......
......@@ -60,24 +60,10 @@ var storage = simpleStorage.storage;
*/
var undetectableTaintedDomains = {
'direct.yandex.com': true,
'direct.yandex.ru': true,
'disk.yandex.com': true,
'disk.yandex.ru': true,
'mail.yandex.com': true,
'mail.yandex.ru': true,
'minigames.mail.ru': true,
'news.yandex.ru': true,
'news.yandex.ua': true,
'passport.twitch.tv': true,
'passport.yandex.com': true,
'passport.yandex.ru': true,
'taxi.yandex.com': true,
'taxi.yandex.ru': true,
'ya.ru': true,
'yadi.sk': true,
'yandex.com': true,
'yandex.ru': true
'yadi.sk': true
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment