News for hackers. Stuff that matters.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by mmathias on Saturday April 15, 2017 @04:31PM (#14122681)
Well, I'm not exactly sure about how to do that. I could implement a list of all the major porn sites, but then people could still post porn URL using URL shorteners...
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by tyingq on Saturday April 15, 2017 @04:49PM (#14122787)
Display the URL with a countdown and a prominent "no thanks" button. Redirect after the countdown if they don't opt out.

A fair amount of sites you don't want to visit have obvious urls. Or maybe you could scrape the title and display that as well.

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by primitivesuave on Saturday April 15, 2017 @04:35PM (#14122704)
This is actually a good point, but I'd imagine people put down a porn website out of pure impulse when trying this service, so having their URL rejected with a friendly warning would certainly reduce the amount of porn spam. You could also block common URL shorteners.

This is a really cool app though!

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by schmich on Saturday April 15, 2017 @05:06PM (#14122862)
Steven Black's hosts compilation [1] is a good start for what to disallow. For URL shorteners, you could disallow URLs that trigger an HTTP redirect (e.g. HTTP 301), or you could follow the chain of redirects and apply your rules to the terminal URL.

[1] https://github.com/StevenBlack/hosts

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by always_good on Saturday April 15, 2017 @05:08PM (#14122874)
If you disallow redirect, it should allow redirects to the same domain.