Skip to content

Instantly share code, notes, and snippets.

@artyom
Created October 13, 2015 10:00
Show Gist options
  • Select an option

  • Save artyom/e74aff739e22f5e67a7c to your computer and use it in GitHub Desktop.

Select an option

Save artyom/e74aff739e22f5e67a7c to your computer and use it in GitHub Desktop.
Slideshare blocks digitalocean's networks replying with javascript causing infinite loop (url requested is http://t.co/qDDamgwHqg)
HTTP/1.1 301 Moved Permanently
cache-control: private,max-age=300
content-length: 0
date: Tue, 13 Oct 2015 09:59:14 GMT
expires: Tue, 13 Oct 2015 10:04:14 GMT
location: http://bit.ly/1hAFSku
server: tsa_b
set-cookie: muc=dd7ffcf9-e1d8-4a0c-bcc3-01dbf7957cd5; Expires=Sun, 24 Sep 2017 09:59:14 GMT; Domain=t.co
x-connection-hash: df197fe166368d00bd02df1f5bf32980
x-response-time: 13
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Tue, 13 Oct 2015 09:59:14 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 147
Connection: keep-alive
Cache-Control: private, max-age=90
Location: http://www.slideshare.net/AmazonWebServices/tag/reinvent2015
Set-Cookie: _bit=f9d9Xe-535b4005cd2d370b35-00D; Domain=bit.ly; Expires=Sun, 10 Apr 2016 09:59:14 UTC
HTTP/1.1 999 Request denied
Date: Tue, 13 Oct 2015 09:59:14 GMT
X-Li-Pop: prod-tln1
X-LI-UUID: UcTDVpq2DBTgmgU5NCsAAA==
Content-Length: 956
Content-Type: text/html
<html><head>
<script type="text/javascript">
window.onload = function() {
var newLocation = "";
if (window.location.protocol == "http:") {
var cookies = document.cookie.split("; ");
for (var i = 0; i < cookies.length; ++i) {
if ((cookies[i].indexOf("sl=") == 0) && (cookies[i].length > 3)) {
newLocation = "https:" + window.location.href.substring(window.location.protocol.length);
}
}
}
if (newLocation.length == 0) {
var domain = location.host;
var newDomainIndex = 0;
if (domain.substr(0, 6) == "touch.") {
newDomainIndex = 6;
}
else if (domain.substr(0, 7) == "tablet.") {
newDomainIndex = 7;
}
if (newDomainIndex) {
domain = domain.substr(newDomainIndex);
}
newLocation = "https://" + domain + "/uas/login?trk=sentinel_org_block&session_redirect=" + encodeURIComponent(window.location)
}
window.location.href = newLocation;
}
</script>
</head></html>
@wpc009

wpc009 commented Mar 2, 2016

Copy link
Copy Markdown

Hello, I have seen this for months.
Do they (Slideshare maintainers) know it still happening? Their site is still malfunctioning.
What can we do to make it back to work?

@seveniruby

Copy link
Copy Markdown

i still have this error, can you access it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment