通过2个简单的步骤即可阻止Chrome中的网站中JavaScript

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

您可能已经知道GitHub在2015年3月27日历史上最大的DDoS攻击 (一些上下文技术细节讨论 ):

We've been under continuous DDoS attack for 24+ hours. The attack is evolving, and we're all hands on deck mitigating.

我们遭受了连续24多个小时的DDoS攻击。 攻击在不断发展,我们所有人都在减轻风险。

— GitHub Status (@githubstatus) March 27, 2015

— GitHub状态(@githubstatus) ,2015年3月27日

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.

遇到此类问题时,一项重要的技术是阻止浏览器中某些站点JavaScript。 在这里,我们介绍了两个简单的步骤来阻止某个网站JavaScript。

步骤1:打开“JavaScript异常”,在镀Chrome (Step 1: Open “JavaScript exceptions” in Chrome )

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

只需在Chrome的网址栏中打开以下地址,即可在Chrome中打开“ JavaScript例外”:

chrome://settings/contentExceptions#javascript

步骤2:输入被封锁的网站并将其封锁 (Step 2: Enter the blocked site and block it )

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

例如,要阻止example.com中的所有JavaScript,请输入

[*.]example.com

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

在“ 主机名模式”中,然后在“行为”列中选择“阻止”。

chrome-blocking-javascript-from-certain-sites.png

Ok, it is done.

好的,完成了。

翻译自: https://www.systutorials.com/blocking-javascripts-from-a-site-in-chrome-in-2-easy-steps/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值