DEV Community

Ben Curtis
Ben Curtis

Posted on

1

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay