News for hackers. Stuff that matters.
Re:Build It: URL Shortener by crcastle on Sunday July 22, 2012 @04:16PM (#4278372)
Does anyone else feel that the decision to implement of a URL shortener shouldn't be taken so lightly? I mean, when you decide to take your URL shortening service down, all those links your service generated are effectively dead. There's no way to figure out where they pointed at.
Re:Build It: URL Shortener by michaelbuckbee on Sunday July 22, 2012 @09:43PM (#4279185)
I would guess that this is aimed more at people who are creating their own 'vanity' url shorteners for their own use than those creating services to compete with Bitly (or Google's).
Re:Build It: URL Shortener by crcastle on Friday July 27, 2012 @12:14AM (#4299987)
Right, that makes sense and is probably accurate, but all the links they share on Twitter and Facebook and Hacker News are going to stop working once these people stops running their link resolvers.
Re:Build It: URL Shortener by dmor on Sunday July 22, 2012 @03:02PM (#4278181)
This is awesome, when I was building the refer.ly shortener I read through dozens of tutorials looking for different approaches and best practices -- this is the easiest to understand step-by-step guide I've seen so far. I'll definitely save it for reference
Re:Build It: URL Shortener by tigras2 on Sunday July 22, 2012 @02:21PM (#4278060)
Just dont put it live, main challenge to check if link doesn't go to porn or even something worse. Because YOU are responsible for content you are redirecting.
Re:Build It: URL Shortener by dspillett on Sunday July 22, 2012 @03:16PM (#4278223)
It isn't the porn content that is the problem. Not "mainstream" or "normal" porn anyway.

If you end up being the conduit for something worse (everything thing from malware that just plays ads to people, through to malware with more damaging intent, up to the far more objectionable porn and other things that you might have trouble squaring with your conscience even if it isn't your fault (because you did everything you thought necessary to make sure that didn't happen).

If you setup an anonymous redirector, don't just put it out there. You need to monitor it for some of the worst things it could be used for. If not for legal reasons, then because you don't want to make things easier for certain sorts of people to hide.

(I'm not saying don't set one up, feel free if you think you can monitor it to your own satisfaction, just be careful with it, and at very least make sure it is very easy to report links to questionable content to you so you can nip them in the bud ASAP)

Re:Build It: URL Shortener by eurleif on Sunday July 22, 2012 @03:03PM (#4278183)
>Because YOU are responsible for content you are redirecting.

Are you?

Re:Build It: URL Shortener by jusob on Sunday July 22, 2012 @03:06PM (#4278192)
Your hosting provider will hold you responsible. If they keep getting abuse reports because spammers use you URL shortener in their e-mails. Hosting providers (including dedicated servers) do not want to be blacklisted by popular spam lists.
Re:Build It: URL Shortener by wrighty52 on Sunday July 22, 2012 @03:04PM (#4278185)
Absolutely not - there's no reason you can't implement black listing or whatever. I can guarantee that there are URL shorteners out there that redirect to porn.
Re:Build It: URL Shortener by dspillett on Sunday July 22, 2012 @03:10PM (#4278204)
In some jurisdictions you have to fight hard to prove you are not if it comes to anything. That fight could be costly.
Re:Build It: URL Shortener by maarten on Sunday July 22, 2012 @09:18PM (#4279107)
The longer the URL, the bigger the benefit of using your service, the greater the chance it will break. URLs might be too long for a varchar(255) field!