aboutsummaryrefslogtreecommitdiff
path: root/internal/test
diff options
context:
space:
mode:
authorDryusdan <dryusdan@dryusdan.fr>2025-04-19 00:28:56 +0200
committerGitHub <noreply@github.com>2025-04-18 22:28:56 +0000
commita40c5e99fc182b6f2fbff5c3f94d9f46c1abce45 (patch)
treedb20e43233c4fa841d0813e82540b93eac7778a3 /internal/test
parentaf831f0d7fa6ed23a7818771e7d2a492c9329dc6 (diff)
downloadanubis-a40c5e99fc182b6f2fbff5c3f94d9f46c1abce45.tar.xz
anubis-a40c5e99fc182b6f2fbff5c3f94d9f46c1abce45.zip
Add more AI user agent in botPolicies.json (#249)
* Add more IA user agent in bot policies * Update data/botPolicies.json Signed-off-by: Xe Iaso <me@xeiaso.net> * Fix trailling pipe that deny all requests --------- Signed-off-by: Xe Iaso <me@xeiaso.net> Co-authored-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal/test')
-rw-r--r--internal/test/playwright_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/test/playwright_test.go b/internal/test/playwright_test.go
index 7859b71..69652ce 100644
--- a/internal/test/playwright_test.go
+++ b/internal/test/playwright_test.go
@@ -53,6 +53,24 @@ var (
userAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/120.0.6099.28 Safari/537.36",
},
{
+ name: "Amazonbot",
+ action: actionDeny,
+ realIP: placeholderIP,
+ userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot)",
+ },
+ {
+ name: "Amazonbot",
+ action: actionDeny,
+ realIP: placeholderIP,
+ userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot)",
+ },
+ {
+ name: "PerplexityAI",
+ action: actionDeny,
+ realIP: placeholderIP,
+ userAgent: "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)",
+ },
+ {
name: "kagiBadIP",
action: actionChallenge,
isHard: true,