Cloudflare is a CDN, DNS, WAF, DDoS protection, and reverse proxy service. You need to use the ngx_http_realip_module module to change the client address sent in the specified header field such as CF-Connecting-IP or X-Forwarded-For. This shell script downloads a list of IPv4 and IPv6 address from Cloudflare and generates an updated /etc/nginx/cloudflare.real.ip.conf file:
A simple shell script wrapper to disable or enable PHP 5 upload support in an Apache or Nginx or Lighttpd web server. The script look for file_uploads directive in php.ini file and change its state from ON to OFF or vice-versa.
A simple shell script to start / stop / restart chrooted nginx web server under CentOS / RHEL Linux. You must have Nginx web server setup in a chroot (jail) so that you can minimizes the damage done by a potential break-in by isolating the web server to a small section of the filesystem. You can also mount $jail/tmp as a separate filesystem (/images/tmpfile.bin) with the noexec,nosuid, nodev options under Linux like operating systems.
Use this shell script to copy shared (libs) files to nginx chrooted jail server. This is tested on 64 bit Linux (Redhat and Friends only)
A Nginx Shell Script To Block Spamhaus Lasso Drop Spam IP Address. Run this script once a day and drop all spam network IPs with http 403 error. The script will get executed every day via /etc/cron.daily (make sure crond is running).
A shell script to update MaxMind GEOIP database using cron job for Apache, Lighttpd and nginx web server under UNIX / Linux / BSD operating system.
A sample perl script to create password using crypt(3), work as replacement for Apache – htpasswd command.
A FreeBSD / Linux shell script to start / stop / restart FastCGI PHP under Nginx web server.