News for hackers. Stuff that matters.
Re:Tell HN: How to ban url shorteners from linking to your site by a2tech on Sunday July 19, 2009 @11:03PM (#713847)
I tend to think that any link and visit is a good one. What I would prefer to do is using the above javascript, detect incoming traffic from URL shorteners and display my own informational bar across the top with the pages real URL and perhaps simple stats of how many people were referred to that page using a shortened link.
Re:Tell HN: How to ban url shorteners from linking to your site by pj on Sunday July 19, 2009 @11:21PM (#713871)
That's a good idea, instead of

  document.location.href="...";
You could use:

  document.getElementById('urlshorteners').style.display='block';
Where originally, the div is like this

  <body>
  <div id='urlshorteners' style='display:none;'>
        Url shorteners information...
  </div>
I like that idea.