this repo has no description
30
fork

Configure Feed

Select the types of activity you want to include in your feed.

av: block bots and some IPs

Signed-off-by: oppiliappan <me@oppi.li>

+26
+26
hosts/appview/services/nginx.nix
··· 17 17 ~*CCBot 1; 18 18 ~*anthropic-ai 1; 19 19 ~*Claude-Web 1; 20 + ~*ClaudeBot 1; 20 21 ~*meta-externalagent 1; 21 22 ~*AliyunSecBot 1; 23 + ~*AhrefsBot 1; 24 + ~*Amazonbot 1; 25 + ~*PetalBot 1; 26 + ~*ThinkBot 1; 27 + ~*SemrushBot 1; 28 + ~*Bytespider 1; 29 + ~*SeznamBot 1; 30 + ~*bingbot 1; 31 + ~*Chrome/112\.0\.0\.0 1; 32 + } 33 + 34 + # Block Vietnamese IP ranges (scraper traffic) 35 + geo $block_vietnam { 36 + default 0; 37 + 14.0.0.0/8 1; 38 + 113.160.0.0/11 1; 39 + 113.172.0.0/14 1; 40 + 113.176.0.0/12 1; 41 + 113.188.0.0/14 1; 42 + 123.16.0.0/12 1; 43 + 123.28.0.0/14 1; 44 + 123.30.0.0/15 1; 22 45 } 23 46 ''; 24 47 ··· 76 99 77 100 extraConfig = '' 78 101 if ($block_bot) { 102 + return 403; 103 + } 104 + if ($block_vietnam) { 79 105 return 403; 80 106 } 81 107