Skip to content

Commit

Permalink
Block malicious host (Nano Adblocker / Defender user-data domain)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwibrowser authored Oct 27, 2020
1 parent 100bcec commit 75df9ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions third_party/blink/renderer/core/loader/base_fetch_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ BaseFetchContext::CanRequestInternal(
if (url.GetString().Contains("serve.popads.net/c") || url.GetPath().Contains("watch.xml") || url.Query().Contains("&vastref=") || (url.Host().Contains("flashx") && url.GetPath().length() == 45 && url.GetPath().Contains(".js")))
return ResourceRequestBlockedReason::kInspector;

if (url.Host().Contains("dev-nano.com"))
return ResourceRequestBlockedReason::kInspector;

if (type == Resource::kScript)
{
if (url.GetPath().Contains("cast_sender.js"))
Expand Down

0 comments on commit 75df9ae

Please sign in to comment.