diff --git a/sbcl-nginx.yml b/sbcl-nginx.yml index d12cb9d..4058bec 100644 --- a/sbcl-nginx.yml +++ b/sbcl-nginx.yml @@ -858,21 +858,6 @@ runcmd: - rm /etc/nginx/sites-enabled/default # Reload Nginx configuration - systemctl reload nginx - - | - #!/bin/bash - # Purpose: Block OpenAI ChatGPT bot CIDR - # Tested on: Debian and Ubuntu Linux - # Author: Vivek Gite {https://www.cyberciti.biz} under GPL v2.x+ - # ------------------------------------------------------------------ - file="/tmp/out.txt.$$" - wget -q -O "$file" https://openai.com/gptbot-ranges.txt 2>/dev/null - - while IFS= read -r cidr - do - sudo ufw deny proto tcp from $cidr to any port 80 - sudo ufw deny proto tcp from $cidr to any port 443 - done < "$file" - [ -f "$file" ] && rm -f "$file" # Allow Nginx Full (HTTP and HTTPS) through the firewall - ufw allow 'Nginx Full' # Set UFW firewall rules