Skip to content

Latest commit

 

History

History
executable file
·
43 lines (35 loc) · 639 Bytes

README.md

File metadata and controls

executable file
·
43 lines (35 loc) · 639 Bytes

Simple REGEX checker

Checks if all instagram bots are covered by regexs

Getting Started

  1. Get all FB IPs id CIDR format:
whois -h whois.radb.net — '-i origin AS32934' | grep ^route'
  1. Put the IPS into /txts/CIDR_IPS_LIST.txt

  2. Put the REGEX from your Apache conf:

/txts/regex_from_apache_conf.txt
### format:
^185\.60\.216\..*$
^185\.60\.217\..*$
^185\.60\.218\..*$
  1. Run either
get_IPs_method_1.py

or

get_IPs_method_2.py
  1. Get the unmatched IPs, open:
/txts/IPs_not_in_REGEX.txt
  1. Update your Apache conf

Prerequisites

  1. Python3
  2. Netaddr
pip3 install netaddr