added bot policy to anubis
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 42s

This commit is contained in:
2025-06-01 22:44:30 +02:00
parent 2ade479728
commit c305c8d3ad
2 changed files with 18 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ jobs:
- name: Deploy with rsync
run: |
rsync -avz --delete -e "ssh -p ${{ secrets.SERVER_PORT }}" \
./public ./nginx.conf ./docker-compose.prod.yml \
./public ./botPolicy.yaml ./nginx.conf ./docker-compose.prod.yml \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:${{ secrets.DEPLOY_PATH }}
- name: Restart Docker container

17
botPolicy.yaml Normal file
View File

@@ -0,0 +1,17 @@
bots:
- name: cloudflare-workers
headers_regex:
CF-Worker: .*
action: DENY
- name: well-known
path_regex: ^/.well-known/.*$
action: ALLOW
- name: favicon
path_regex: ^/favicon.ico$
action: ALLOW
- name: robots-txt
path_regex: ^/robots.txt$
action: ALLOW
- name: generic-browser
user_agent_regex: Mozilla
action: CHALLENGE