add tag "tricot-block-user-agent" to block clients with a matching user agent #16

Open
Armael wants to merge 1 commit from Armael/tricot:block_user_agents into main
Owner

This PR adds a new service tag: tricot-block-user-agent which allows blocking requests for clients matching a specific user agent.
The tag takes as argument a string, and any user agent containing this string is blocked (it receives a 403).
The tag can be specified multiple times, in which case clients that match any of the tags' argument get blocked

(The usecase is to block certain crawlers, etc.)

This PR adds a new service tag: `tricot-block-user-agent` which allows blocking requests for clients matching a specific user agent. The tag takes as argument a string, and any user agent containing this string is blocked (it receives a 403). The tag can be specified multiple times, in which case clients that match any of the tags' argument get blocked (The usecase is to block certain crawlers, etc.)
Armael added 1 commit 2024-11-24 15:04:41 +00:00
add tag "tricot-block-user-agent" to block clients with a matching user agent
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
9a578b3c04
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u block_user_agents:Armael-block_user_agents
git checkout Armael-block_user_agents

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout main
git merge --no-ff Armael-block_user_agents
git checkout Armael-block_user_agents
git rebase main
git checkout main
git merge --ff-only Armael-block_user_agents
git checkout Armael-block_user_agents
git rebase main
git checkout main
git merge --no-ff Armael-block_user_agents
git checkout main
git merge --squash Armael-block_user_agents
git checkout main
git merge --ff-only Armael-block_user_agents
git checkout main
git merge Armael-block_user_agents
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/tricot#16
No description provided.