DEV Community

Ben Curtis
Ben Curtis

Posted on

Simple (and naïve) way to mark private URLs as invalid

I'm working on a new side project, and I needed some code to check that a user-supplied URL won't be accepted if it's a known private address... here's a gist with some quick code I wrote.

Top comments (0)