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.
[ Parent
| on HN ]
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.