Skip to content

Algorithm to detect blocked ip address and white list ips

Notifications You must be signed in to change notification settings

evinw/ipblocklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

IP validate

Algorithm to detect blocked ip address and white list ips

This algorithm uses he socket.inet_aton() function to check if the given IP address is a valid IPv4 address. If it is a valid IP address, it checks whether the address is in the block list. If it is in the block list, it raises a BlockedIPError exception, otherwise, it adds it to the whitelist. If the IP address is not a valid IPv4 address, it raises a ValueError exception.

About

Algorithm to detect blocked ip address and white list ips

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages