Permalink
Browse files

Add info for getting cloudflare.js

  • Loading branch information...
MikeSofaer committed May 3, 2012
1 parent 882d548 commit 9d084bc49474db1737b90b1624520f50294c006a
Showing with 22 additions and 8 deletions.
  1. +22 −8 README.md
View
@@ -1,23 +1,37 @@
#Detect DNSChanger and Notify Visitors
##About
This JS is a CloudFlare app that checks whether a visitor is
This JavaScript is a CloudFlare app that checks whether a visitor is
infected with the DNSChanger malware, and notifies the visitor
if so.
##Using This Tool
The easiest way is to put your site on CLoudFlare and go to
http://cloudflare.com/apps/dnschanger_detector
The easiest way is to put your site on CloudFlare and go to
https://cloudflare.com/apps/dnschanger_detector
to enable the app.
##How It Works
DNSChanger Detector works by attaching an alerting function to the window, and
making a JSONP call to a special URL. The IP resolved for that URL
by the infected servers serves a file that calls the alerting function
by the infected servers serves a file that calls the alerting function.
The JS is packaged for use with cloudflare.js on CloudFlare, but it will work
on non-cloudflare sites if you add a script tag for cloudflare.js or if you
only use the part inside the CloudFlare.define call
The alert is banner at the top of the page with information about how to fix the infected computer. It looks like
https://www.cloudflare.com/images/apps/dnschanger_detector/banner-example.png
##For Non-CloudFlare Sites
The JavaScript is packaged for use with cloudflare.js on CloudFlare, but it will work
on non-CloudFlare sites if you add a script tag for cloudflare.js
<script type="text/javascript" src="//ajax.cloudflare.com/cdn-cgi/nexp/cloudflare.js" async></script>
##Why
Making the Internet a better place.
CloudFlare is trying to make the Internet better for everyone.
The Federal Bureau of Investigation (FBI) has been operating DNS servers
to keep infected users online, but they are going to stop soon (July 9, 2012). We want to
do what we can to keep people from being kicked off the Internet when that happens.
For more background, see
http://www.fbi.gov/news/stories/2011/november/malware_110911

0 comments on commit 9d084bc

Please sign in to comment.