Skip to content

Instantly share code, notes, and snippets.

@tomviner
Created March 21, 2013 15:26
Show Gist options
  • Save tomviner/5213910 to your computer and use it in GitHub Desktop.
Save tomviner/5213910 to your computer and use it in GitHub Desktop.
DDoS protection by CloudFlare
$ GET http://xyz.com/14015/forxxx
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>Just a moment...</title>
<link rel="stylesheet" media="screen" href="/cdn-cgi/styles/js-challenge/error.css" type="text/css">
</head>
<body>
<table width="100%" height="100%" cellpadding="30">
<tr>
<td align="center" valign="center">
<h1>Checking your browser before accessing xyz.com.</h1>
<noscript>
<h1 style="color:red;"><strong>Please turn JavaScript on and reload the page.</strong></h1>
</noscript>
<div id="challenge" style="display:none;">
<p>This process is automatic. Your browser will redirect to your requested content shortly.</p>
<p>Please allow up to 5 seconds...</p>
<img src="/cdn-cgi/images/spinner.gif" style="margin: 40px 0 30px 0;"/>
<form id="ChallengeForm" action="http://butxxxs/" method="POST">
<input type="hidden" name="act" value="jschl"/>
<input type="hidden" name="jschl_vc" value="b93d5e087a760b1208fb7659be2988e8"/>
<input type="hidden" id="jschl_answer" name="jschl_answer"/>
</form>
</div>
<div style="margin-top:20px;">
<a href="http://www.cloudflare.com/" target="_blank" style="font-size: 12px;">DDoS protection by CloudFlare</a>
</div>
</td>
</tr>
</table>
<script type="text/javascript" src="/cdn-cgi/scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$('#challenge').show();
$(function(){setTimeout(
function(){
var t,r,a;
t = document.createElement('div'); t.innerHTML="<a href='/'>x</a>"; t = t.firstChild.href;
r = t.match(/https?:\/\//)[0]; t = t.substr(r.length); t = t.substr(0,t.length-1);
a = $('#jschl_answer');
a.val(49+2*3);
a.val(parseInt(a.val())+t.length);
$('#ChallengeForm').submit();
},
5850
)});
//]]>
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment