hosts/web-2: Block Alibaba Cloud because of scraper bots
This commit is contained in:
7
pkgs/generate-blocked-prefixes/default.nix
Normal file
7
pkgs/generate-blocked-prefixes/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
pkgs.clerie-build-support.writePythonScript {
|
||||
name = "generate-blocked-prefixes";
|
||||
runtimePackages = ps: with ps; [ requests ];
|
||||
text = builtins.readFile ./generate-blocked-prefixes.py;
|
||||
}
|
Reference in New Issue
Block a user