openrightsgroup / Blocking-Middleware

The censorship monitoring project (blocked.org.uk) API, database and message-queueing system
https://www.blocked.org.uk/
GNU General Public License v3.0
25 stars 11 forks source link

Don't check IP addresses against non-IAP sources #144

Open gwire opened 3 years ago

gwire commented 3 years ago

Occasionally IAPs will block access by routing specific IP addresses to their blocking infrastructure, for example this recent block for 186.2.163.219 targeting sci-hub.

For IP-based lookups, the public DNS checks (OpenDNS, CloudFlare Family DNS) should be skipped and have a neutral "Not Applicable" result. Currently an IP address lookup will give "Address lookup failed".