Giter VIP home page Giter VIP logo

cloudflare-rules's Introduction

Cloudflare firewall rules

This rules is optimized for Free plan, which only have 5 rules available.

Rule 1: Allow Bots:

  • Action: Allow
  • (cf.client.bot) or (ip.geoip.asnum eq 2635) or (ip.src eq 54.68.32.247) or (ip.src eq 44.235.211.232) or (ip.src eq 54.71.203.174) or (ip.geoip.asnum eq 32934) or (ip.geoip.asnum eq 63293) or (ip.geoip.asnum eq 36459)

Rule 2: Allow valid query string

  • Action: Allows
  • (http.request.uri eq "") or (http.request.uri contains "?f") or (http.request.uri contains "?a") or (http.request.uri contains "?u")

Rule 3: Challenge request not in VN

  • Action: Legacy CAPTCHA
  • (not ip.geoip.country in {"VN"})

Rule 4: Block request from botnets, china, tor, random query string ddos

  • Action: Block
  • (ip.geoip.asnum eq 4134) or (ip.geoip.asnum eq 14061) or (ip.geoip.asnum eq 53667) or (ip.geoip.asnum eq 14618) or (ip.geoip.asnum eq 63949) or (ip.geoip.asnum eq 4837) or (ip.geoip.asnum eq 396507) or (ip.geoip.asnum eq 135951) or (ip.geoip.country in {"CN" "T1"}) or (ip.geoip.country eq "VN" and http.request.uri.query ne "") or (ip.geoip.country ne "VN" and http.request.uri.query ne "") or (http.x_forwarded_for contains ".")

cloudflare-rules's People

Contributors

arcrek avatar

Watchers

 avatar

Forkers

jamalhackcom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.