Blocking JavaScripts from a Site in Chrome in 2 Easy Steps

Posted on In Network, Software, Tutorial, Web

You may be aware of the GitHub’s largest DDoS attack in history on Mar. 27, 2015 (some context, technical details, and discussions):

One important technique when facing this kind of problems is blocking certain sites’ JavaScripts in your browser. Here, we introduce the 2 simple steps to block a certain site’s JavaScripts.

Step 1: Open “JavaScript exceptions” in Chrome

Open “JavaScript exceptions” in Chrome by simply opening this address in Chrome’s URL bar:

chrome://settings/contentExceptions#javascript

Step 2: Enter the blocked site and block it

For example, to block all JavaScripts from example.com, input

[*.]example.com

in the “Hostname pattern”, and select “Block” in the “Behavior” column.

Ok, it is done.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *