Skip to content

This script aims to automatically update nginx rules for only the servers from cloudflare to have access to your own server.

License

Notifications You must be signed in to change notification settings

IcToxi/cloudflare-iprange-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

cloudflare-iprange-updater

This script aims to automatically update nginx rules for only the servers from cloudflare to have access to your own server.

usage

Add these following rules into your server block:

    include cf.conf;
    deny all;

then

chmod +x ./updater.sh
./updater.sh

By default, a cf.conf will be generated in /etc/nginx/.

as a daily use

sudo crontab -e
@daily updater.sh &> /dev/null

About

This script aims to automatically update nginx rules for only the servers from cloudflare to have access to your own server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages