anthony / Minimal nginx reverse-proxy
0 gustos
0 bifurcaciones
1 archivos
Última actividad
1 | server { |
2 | listen 80; |
3 | listen [::]:80; |
4 | server_name example.com; # replace with your domain |
5 | |
6 | access_log /var/log/nginx/access.log; |
7 | error_log /var/log/nginx/error.log; |
8 | #client_max_body_size 100M; |
9 | |
10 | location / { |
anthony / Block bots and crawlers in nginx
0 gustos
0 bifurcaciones
1 archivos
Última actividad
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; |
Siguiente
Anterior