add tag "tricot-block-user-agent" to block clients with a matching user agent #16
Loading…
Reference in a new issue
No description provided.
Delete branch "Armael/tricot:block_user_agents"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.