# IP and ASN based blocking Originally started playing with these again because I saw a post about how some google user-agent doesn't respect robots.txt blocking when it is against the "*" user-agent. So, I remade some scripts to extract all the netblocks from the whois server that pwhois.org runs, then add those to a static protocol block in my bird config, with the routes for the ranges set to unreachable. It'll read a list of ASNs from a config file, get their ranges, generate the config file, and reload bird's config. I also got tired of seeing failed login attempts in my logs. Since my logs go to my desktop notifications, I see them fairly often. So I added a way to add IP ranges to the list manually so they'd be included in the block list. Now, to make it so I can middle-click the desktop notifications and have some menu-based way of doing "block this" to take care of the "add to manual list" and then re-running the config generator and bird reloader.