All pastes #2033238 Raw Edit

Is bit.ly hacked ?

public text v1 · immutable
#2033238 ·published 2010-12-29 14:44 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="nojs">
<!-- MIME TYPE Guidlines and references: http://hixie.ch/advocacy/xhtml -->
<head>
<title>bit.ly | Basic | a simple URL shortener</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="IE=8" http-equiv="X-UA-Compatible">
<meta name="keywords" content="bit.ly, awesome, url shortener" />
<meta name="description" content="bit.ly, a simple url shortener" />
<script type="text/javascript">
// remove nojs from html
try{ document.getElementsByTagName("html")[0].className = ""; }
catch (ex) {}
</script>


<link rel="stylesheet" href="/s/v199/css/bitly_compressed.css" type="text/css" charset="utf-8" />


<!--[if lte IE 7]>
<link rel="stylesheet" href="/s/v199/css/IE.css" type="text/css" charset="utf-8" />
<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" href="/s/v199/css/IE6.css" type="text/css" charset="utf-8" />
<![endif]-->

<link rel="icon" type="image/png" href="/s/v199/graphics/favicon.png" />

<style type="text/css">
/* temp until i put sticky footer on every page */
html:before, #middle:before { /* Opera and IE8 "redraw" bug fix */
content:"";
float:left;
height:100%;
margin-top:-999em;
}
* html #wrap { /* IE6 workaround */
height:100%;
}
</style>

<script type="text/javascript">
// chartbeat
var _sf_startpt=(new Date()).getTime();
var _sf_async_config={uid: 30, sections: 'default', pingServer: 'pdev.chartbeat.net', domain: 'bit.ly' };

_sf_async_config['sections'] = "home,home_unauthenticated";

</script>

</head>
<body class="unauth_home">


<div id="container">
<!-- Put Content Here -->
<div id="top">




</div> <!-- end #top -->
<div id="middle">

<!-- Sorry, you are not logged -->
<div id="middle_inner">
<div id="header">
<a id="logo" href="/">bit.ly</a>
</div>
<div id="middleLevelContainer1">
<div id="mainSearchContainer">
<div id="mainSearchContainerInner" class="mainUnAuthShortenContainerInner">
<div class="formActionContainer">
<form method="POST" action="/data/shorten" name="shortenUrl" id="unAuthShortenForm">
<div class="shortenUnAuthBox clearfix">
<div id="mainUnAuthShortenContainer" class="inputBoxContainer">
<input tabindex="1" id="shortenUnAuthContainer" type="text" name="url" value="" />
</div>
<input type="submit" class="submitButtonBackground white_button" id="unAuthShortenButton" name="searchButton" value="Shorten" />
<a href="/a/sign_in" id="sign_in">Sign In</a>
<form action="" method="get">
<input type="hidden" name="_xsrf" value="13d178ae44f94ae286f3f398667ba9eb"/>
</form>
</div>
</form>
</div>
</div>
</div>
<div class="shortenedBitlyListListBox last_shorten ">
<div class="linkCapsule_link clearfix">
<strong class="shortened_url">Shortened links</strong>
<strong class="realtime_stats">Real-time stats</strong>
<strong class="long_link">Long link</strong>
</div>
<ul class="shortened_results_list">

</ul>
</div>


<div class="resultsContainer">
<div id="historyHeadline"></div>
<div id="weeklySparkLines"></div>
<div id="results">
<div id="preloaderContainer"><img src="/s/v199/graphics/64_64_blue_preloader.gif" alt="" border="0" width="64" height="64" /></div>
</div> <!-- end #resultsContainer -->
</div>


<p id="signup_promo" class="clearfix">
Bitly helps you share, track, and analyze your links.
<a id="sign_up" href="/a/sign_up">Sign Up »</a>
</p>
</div>
</div>

</div> <!-- END #middle -->
<div id="bottom">

</div> <!-- end #bottom -->
</div> <!-- end #container -->


<div id="footer">

<div class="footerLinksContainer clearfix">
<div class="footerColumn">
<h2>bit.ly</h2>
<ul>
<li><a href="/pages/help">Help</a></li>
<li><a href="/pages/tools">Tools</a></li>
<li><a href="/pages/partners">Partners</a></li>
<li><a href="http://bit.ly/apidocs">API</a></li>

<li><a href="/a/sign_up">Sign Up</a></li>

</ul>
</div>
<div class="footerColumn">
<h2>bitlyverse</h2>
<ul>
<li><a href="http://bitly.pro/">bitly.Pro</a></li>
<li><a href="http://labs.bit.ly/">labs.bit.ly</a></li>
<li><a href="http://bitly.tv/">bitly.tv</a></li>
<li><a href="http://j.mp/">j.mp</a></li>
</ul>
</div>
<div class="footerColumn">
<h2>Company</h2>
<ul>
<li><a href="/pages/about">About</a></li>
<li><a href="http://blog.bit.ly">Blog</a></li>
<li><a href="/pages/jobs">Jobs</a></li>
<li><a href="/pages/privacy">Privacy</a></li>
<li><a href="/pages/terms-of-service">Terms of Service</a></li>
</ul>
</div>
<div class="footerColumn">
<h2>Community</h2>
<ul>
<li><a href="http://feedback.bit.ly/">Feedback</a></li>
<li><a href="mailto:support+sitelink@bit.ly">Contact</a></li>
<li><a href="/a/report_spam">Report Abuse</a></li>
</ul>
</div>
<div class="bitlyTrademarkContainer">&copy; 2010 bit.ly <span class="super">TM</span></div>
</div>

<form action="" method="get">
<input type="hidden" name="_xsrf" value="13d178ae44f94ae286f3f398667ba9eb"/>
</form>
</div>



<!--[if IE]><script language="javascript" type="text/javascript" src="/s/v199/js/ie-hacks/excanvas.min.js"></script><![endif]-->
<script type="text/javascript" src="/s/v199/js/bitly_compressed.js"></script>
<script type="text/javascript" src="/s/v199/js/i18n/en_US.js"></script>



<script type="text/javascript">
//<!--
if(!window.console) window.console={};
if(!window.console.log) window.console.log = function(){};
var pageTracker;
// turn caching off for all AJAX - fix IE issue with stale data
$.ajaxSetup({
cache : false,
traditional : true,
timeout : 12000
});
$(function() {
var $bod = $(document.body).errorMessenger().eventTracker();
// TODO: move these to a .js file
$bod.bind('addTwitterViaOAuth', function(e, data) {
var completion_redirect = document.location.pathname,
url = '/a/add_twitter_account';
if(data && data.share_text) {
completion_redirect += '?s=' + encodeURIComponent( data.share_text );
}
url += '?rd=' + encodeURIComponent(completion_redirect);
top.location.href = url;
}).bind('addFacebookViaConnect', function(e,data) {
var completion_redirect = document.location.pathname,
url = '/a/add_facebook_account';
if(data && data.share_text) {
completion_redirect += '?s=' + encodeURIComponent( data.share_text );
}
url += '?rd=' + encodeURIComponent(completion_redirect);
top.location.href = url;
});

/* only trigger for production */
var protcl = document.location.protocol
_google_analitcies_url = (("https:" == protcl ) ? "https://ssl." : "http://www.") + "google-analytics.com/ga.js",
_charbeat_url = (("https:" == protcl) ? "https://s3.amazonaws.com/" : "http://") + "static.chartbeat.com/js/chartbeat.js";
window._sf_endpt=(new Date()).getTime();
getJS(_google_analitcies_url, function(){try {
pageTracker = _gat._getTracker("UA-1223636-11");
pageTracker._trackPageview();
} catch(err) {}
});
getJS(_charbeat_url, function() {
// chart beat loaded
});

BITLY.data.xsrf = '<input type="hidden" name="_xsrf" value="13d178ae44f94ae286f3f398667ba9eb"/>';
BITLY.data.host = "bit.ly";
BITLY.data.current_user = '';
BITLY.els.search_box = new BITLY.DefaultTextbox("#q");
BITLY.els.search_box.els.form.historySuggest({
searchBox: BITLY.els.search_box.el,
searchContainer: BITLY.els.search_box.els.form.find("fieldset")
});
//TODO: actually handle the case where there is a search box but no history box
BITLY.Eventer.delegate({
evt: "submit",
el: BITLY.els.search_box.els.form,
del: BITLY.els.search_box.els.form,
cb: function(e) {
if (!BITLY.data.instant_activated) {
e.preventDefault();
var action = BITLY.els.search_box.els.form.attr("action");
if(location.href.indexOf(action) > -1) {
location.hash = BITLY.data.cur_search = BITLY.els.search_box.val();
$(document.body).trigger("refreshHistory", {page: 1, search_term:BITLY.els.search_box.val()});
}
else {
location.href=action+"#"+BITLY.els.search_box.val();
}
}
return false;
},
scope: this
});
$("#header .user_link").bind("click", function(e) {
e.preventDefault();
e.stopPropagation();
var el=$(this), container = $("#loginContainer");
if(container.hasClass("active")) {
container.removeClass("active");
$("body").unbind("click.hide_user_dropdown");
}
else {
container.addClass("active");
$("body").bind("click.hide_user_dropdown", function(e) {
$("#header .user_link").click();
});