Validator icon indicating copy to clipboard operation
Validator copied to clipboard

New Rule: Active URL

Open CSenshi opened this issue 5 years ago • 1 comments

Rule Name: ActiveURL

Rule Description: The field under validation must have a valid A or AAAA record

Rule Usage Example:

reqs = {'data' : 'facebook.com'}
rule = {'data' : 'active_url'}
validate(reqs, rule) # True

reqs = {'data' : 'some.random.url.com'}
rule = {'data' : 'active_url'}
validate(reqs, rule) # False

Before contributing please review RULES.md (check for duplication), also check CONTRIBUTING.md for more details :100:

CSenshi avatar Jul 16 '20 18:07 CSenshi

Useful link: https://www.tutorialspoint.com/python_network_programming/python_dns_look_up.htm

CSenshi avatar Jul 16 '20 18:07 CSenshi