News for hackers. Stuff that matters.
Re:Non-Libyan URL Shortener by staktrace on Wednesday April 27, 2011 @10:04PM (#2491817)
Isn't that impossible? You can redirect to a page (under your control) that redirects to itself, if your goal is to get the user stuck in a redirect loop. Until their browser decides enough is enough, that is.
Re:Non-Libyan URL Shortener by wahnfrieden on Wednesday April 27, 2011 @10:18PM (#2491846)
You can have the service test the link for redirects (using HEAD requests), and have a max depth to be safe. Then if a URL occurs twice, or the max depth is reached, mark as invalid.
Re:Non-Libyan URL Shortener by ay on Thursday April 28, 2011 @06:31AM (#2492800)
"browser decides enough is enough"

IIRC from reading the sources, both FF and Chrome had a limit of 30 hardcoded - after this many redirects they would give up and say "uh, it's a redirect loop".