Django URLValidator with scheme deny list
If you want to check that some string is a valid URL in your Django application, you might reach for django.core.validators.URLValidator. By default, it accepts URLs with the schemes http, https, ftp, ftps. If you want to accept different schemes, you can provide your own list of valid schemes. But what if you want to […]