News for hackers. Stuff that matters.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by zelah on Saturday April 15, 2017 @04:28PM (#14122665)
I like this idea but there is a lot of porn. Can you block the porn?
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by dom0 on Saturday April 15, 2017 @04:33PM (#14122697)
> but there is a lot of porn

Rule 44 - When the URL says "roulette", there's lots of porn abound.

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by mmathias on Saturday April 15, 2017 @04:40PM (#14122740)
:)
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.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by primitivesuave on Saturday April 15, 2017 @04:32PM (#14122691)
I second this. Here is a big list of websites to filter.

http://pasted.co/b2dc3032

Re:Show HN: UrlRoulette – Pass a URL to the next visitor by mmathias on Saturday April 15, 2017 @04:39PM (#14122734)
Wow, thanks, that's a long list. Will try to implement in the coming days... :)
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by reikonomusha on Saturday April 15, 2017 @09:06PM (#14123792)
Why should porn be banned? Maybe that will be the intrigue of some folks.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by kwhitefoot on Sunday April 16, 2017 @02:43PM (#14126869)
Make it optional, some of us are quite fond of porn.
Re:Show HN: UrlRoulette – Pass a URL to the next visitor by gruez on Saturday April 15, 2017 @04:46PM (#14122768)
>hosts file with urls

why even