Skip to content

Instantly share code, notes, and snippets.

@manedfolf
Created July 27, 2019 17:12
Show Gist options
  • Save manedfolf/de88e45a0ff8ebb1bcd9ab4f6dd4ffcb to your computer and use it in GitHub Desktop.
Save manedfolf/de88e45a0ff8ebb1bcd9ab4f6dd4ffcb to your computer and use it in GitHub Desktop.
Nginx Firewall rule to block Archive.Today (+ all subdomains and alts), Via.Hypothes.is, and The Internet Archive to prevent archiving
deny 46.17.100.191;
deny 104.196.7.222;
deny 104.27.170.40;
deny 104.27.171.40;
deny 154.59.112.68;
deny 185.219.42.148;
deny 46.105.75.102;
deny 46.17.42.43;
deny 46.182.19.43;
deny 46.45.185.30;
deny 80.211.3.180;
deny 81.7.17.119;
deny 91.121.82.32;
deny 91.219.236.183;
deny 94.16.117.236;
deny 2605:7380:1000:1310:50a5:36ff:fed9:687b;
deny 2604:180:2:e51::24b3;
deny 2a03:b0c0:2:f0::43:1;
deny 209.50.56.33;
deny 107.191.111.138;
deny 142.93.143.38;
if ($http_user_agent ~* (archive|Hypothesis)) {
return 444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment