Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mathias
on June 23, 2014
|
parent
|
context
|
favorite
| on:
In search of the perfect URL validation regex
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.
mdavidn
on June 23, 2014
[–]
So check if uri.host matches your blacklist.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: