搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Is it possible to block Javascript execution from an IP address?

  • 4 个回答
  • 2 人有此问题
  • 11 次查看
  • 最后回复者为 AtKr2

more options

As per the article http://tech.firstpost.com/news-analysis/more-trouble-for-airtel-injects-javascript-code-to-monitor-data-usage-activist-receives-notice-270111.html, my broadband provider is inserting javascript in the web pages browsed by me. I would like to block download and execution of Javascript from this IP address. is it possible to do so?

As per the article http://tech.firstpost.com/news-analysis/more-trouble-for-airtel-injects-javascript-code-to-monitor-data-usage-activist-receives-notice-270111.html, my broadband provider is inserting javascript in the web pages browsed by me. I would like to block download and execution of Javascript from this IP address. is it possible to do so?

被采纳的解决方案

Have you tried the YesScript extension? It can block scripts by IP address (or domain name).

1. Add YesScript to Firefox. 2. Open Add-ons Manager (Ctrl+Shift+A) 3. Click on Extensions 4. Click on Options button for YesScript 5. Add the IP address

定位到答案原位置 👍 1

所有回复 (4)

more options

Might be possible to block that by using the Hosts file in Windows. Not sure if it works with the IP Address and /scripts/Anchor.js though. I never tried that fine of a block. And I haven't used Hosts in like 10 years or so. https://en.wikipedia.org/wiki/Hosts_%28file%29 http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/ http://winhelp2002.mvps.org/hosts.htm http://winhelp2002.mvps.org/hostswin8.htm

more options

选择的解决方案

Have you tried the YesScript extension? It can block scripts by IP address (or domain name).

1. Add YesScript to Firefox. 2. Open Add-ons Manager (Ctrl+Shift+A) 3. Click on Extensions 4. Click on Options button for YesScript 5. Add the IP address

more options

kenkon said

Have you tried the YesScript extension? It can block scripts by IP address (or domain name). 1. Add YesScript to Firefox. 2. Open Add-ons Manager (Ctrl+Shift+A) 3. Click on Extensions 4. Click on Options button for YesScript 5. Add the IP address

Is there similar option for Firefox Mobile also? I have done this in desktop now and thanks for that.

由AtKr2于修改

more options

the-edmeister said

Might be possible to block that by using the Hosts file in Windows. Not sure if it works with the IP Address and /scripts/Anchor.js though. I never tried that fine of a block. And I haven't used Hosts in like 10 years or so. https://en.wikipedia.org/wiki/Hosts_%28file%29 http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/ http://winhelp2002.mvps.org/hosts.htm http://winhelp2002.mvps.org/hostswin8.htm

I think using Windows Firewall and IPSec policies will work for IP addresses. Realized it after going through your response and further Google search. I am definitely going to explore host file option soon.