News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex by mathias on Monday June 23, 2014 @03:01AM (#7930595)
That was not an option in this case, as the goal is to validate URLs entered as user input and blacklist certain URL constructs even though they’re technically valid.
Re:In search of the perfect URL validation regex by mdavidn on Monday June 23, 2014 @11:29AM (#7932453)
So check if uri.host matches your blacklist.