Checks if all instagram bots are covered by regexs
- Get all FB IPs id CIDR format:
whois -h whois.radb.net — '-i origin AS32934' | grep ^route'
-
Put the IPS into /txts/CIDR_IPS_LIST.txt
-
Put the REGEX from your Apache conf:
/txts/regex_from_apache_conf.txt
### format:
^185\.60\.216\..*$
^185\.60\.217\..*$
^185\.60\.218\..*$
- Run either
get_IPs_method_1.py
or
get_IPs_method_2.py
- Get the unmatched IPs, open:
/txts/IPs_not_in_REGEX.txt
- Update your Apache conf
- Python3
- Netaddr
pip3 install netaddr