mysrv.conf
· 780 B · Text
Brut
map $request_uri $reject {
"~(yandexbot)" 0;
"~(googlebot)" 0;
"~(ClaudeBot).*" 1;
"~(Amazonbot).*" 1;
"~(SemrushBot).*" 1;
"~(meta-externalagent).*" 1;
"~(DataForSeoBot).*" 1;
"~(Screaming Frog SEO Spider).*" 1;
"~(GetRight).*" 1;
"~(GetWeb!).*" 1;
"~(Go!Zilla).*" 1;
"~(Download Demon).*" 1;
"~(Go-Ahead-Got-It).*" 1;
"~(TurnitinBot).*" 1;
"~(GrabNet).*" 1;
"~(dirbuster).*" 1;
"~(nikto).*" 1;
"~(SF).*" 1;
"~(sqlmap).*" 1;
"~(fimap).*" 1;
"~(nessus).*" 1;
"~(whatweb).*" 1;
"~(Openvas).*" 1;
"~(jbrofuzz).*" 1;
"~(libwhisker).*" 1;
"~(webshag).*" 1;
"~(Acunetix-Product).*" 1;
"~(Acunetix).*" 1;
}
#...
server {
#...
if ($reject) { return 403; }
#...
}
1 | map $request_uri $reject { |
2 | "~(yandexbot)" 0; |
3 | "~(googlebot)" 0; |
4 | "~(ClaudeBot).*" 1; |
5 | "~(Amazonbot).*" 1; |
6 | "~(SemrushBot).*" 1; |
7 | "~(meta-externalagent).*" 1; |
8 | "~(DataForSeoBot).*" 1; |
9 | "~(Screaming Frog SEO Spider).*" 1; |
10 | "~(GetRight).*" 1; |
11 | "~(GetWeb!).*" 1; |
12 | "~(Go!Zilla).*" 1; |
13 | "~(Download Demon).*" 1; |
14 | "~(Go-Ahead-Got-It).*" 1; |
15 | "~(TurnitinBot).*" 1; |
16 | "~(GrabNet).*" 1; |
17 | "~(dirbuster).*" 1; |
18 | "~(nikto).*" 1; |
19 | "~(SF).*" 1; |
20 | "~(sqlmap).*" 1; |
21 | "~(fimap).*" 1; |
22 | "~(nessus).*" 1; |
23 | "~(whatweb).*" 1; |
24 | "~(Openvas).*" 1; |
25 | "~(jbrofuzz).*" 1; |
26 | "~(libwhisker).*" 1; |
27 | "~(webshag).*" 1; |
28 | "~(Acunetix-Product).*" 1; |
29 | "~(Acunetix).*" 1; |
30 | } |
31 | #... |
32 | |
33 | server { |
34 | #... |
35 | if ($reject) { return 403; } |
36 | #... |
37 | } |