Skip to content

Commit f69d276

Browse files
committed
📝 Add bot fight mode, configure pre-commit
1 parent b17bd01 commit f69d276

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.markdownlint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MD013: false

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ repos:
2121
hooks:
2222
- id: markdownlint
2323
files: \.md$
24+
args: ["--config", ".markdownlint.yaml"]
2425

2526
default_stages: [commit]

cloudflare/bot-fight-mode.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Bot Fight Mode
2+
3+
If your site is getting hammered by bots and triggering a ton of errors, and you use Cloudflare, one of your options is to use [Bot Fight Mode](https://developers.cloudflare.com/learning-paths/get-started-free/security/bot-fight-mode/?utm_source=chatgpt.com).
4+
5+
This will put that "are you a human?" check in front of your sites.
6+
7+
A note: In the "free" tier of Bot Fight Mode, you can't customize it at all. This may have side effects, like your site blocking webhooks you subscribe to from external sites (like Stripe).
8+
9+
The docs on Bot Fight Mode are pretty light; it's basically an on/off switch.
10+
11+
There is also [Super Bot Fight Mode](https://developers.cloudflare.com/bots/get-started/super-bot-fight-mode/), which costs money (it's part of one of their subscription tiers), which is customizable to a degree. At this level, it seems like you can [set rules](https://developers.cloudflare.com/bots/get-started/super-bot-fight-mode/#conditions) to "Skip action" and specify parts of your site where the Super Bot Fight Mode should not run (like, potentially, your webhook endpoints?)
12+
13+
In my experience, turning on Bot Fight Mode does seem to block legitimate webhook traffic. I haven't tried Super Bot Fight Mode, so I'm not sure about the specifics of the rule-setting capabilities.
14+
15+
There is also [Bot Management for Enterprise](https://developers.cloudflare.com/bots/get-started/bot-management/), but I'm not sure what that gets you beyond Super Bot Fight Mode.

0 commit comments

Comments
 (0)