mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-10 18:48:44 +00:00
Compare commits
3 Commits
json/add-b
...
Xe/fix-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0fcc6cd78b | ||
|
|
eefe610ea1 | ||
|
|
80e41c3318 |
@@ -4,5 +4,5 @@
|
|||||||
# - Claude-User: No published IP allowlist
|
# - Claude-User: No published IP allowlist
|
||||||
- name: "ai-clients"
|
- name: "ai-clients"
|
||||||
user_agent_regex: >-
|
user_agent_regex: >-
|
||||||
ChatGPT-User|Claude-User|MistralAI-User|Perplexity-User
|
ChatGPT-User|Claude-User|MistralAI-User
|
||||||
action: DENY
|
action: DENY
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
# Acts on behalf of user requests
|
|
||||||
# https://docs.perplexity.ai/guides/bots
|
|
||||||
- name: perplexity-user
|
|
||||||
user_agent_regex: Perplexity-User/.+; \+https\://perplexity\.ai/perplexity-user
|
|
||||||
action: ALLOW
|
|
||||||
# https://www.perplexity.com/perplexity-user.json
|
|
||||||
remote_addresses: [
|
|
||||||
"44.208.221.197/32",
|
|
||||||
"34.193.163.52/32",
|
|
||||||
"18.97.21.0/30",
|
|
||||||
"18.97.43.80/29",
|
|
||||||
]
|
|
||||||
@@ -4,5 +4,5 @@
|
|||||||
# - Claude-SearchBot: No published IP allowlist
|
# - Claude-SearchBot: No published IP allowlist
|
||||||
- name: "ai-crawlers-search"
|
- name: "ai-crawlers-search"
|
||||||
user_agent_regex: >-
|
user_agent_regex: >-
|
||||||
OAI-SearchBot|Claude-SearchBot|PerplexityBot
|
OAI-SearchBot|Claude-SearchBot
|
||||||
action: DENY
|
action: DENY
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
# Indexing for search, does not collect training data
|
|
||||||
# https://docs.perplexity.ai/guides/bots
|
|
||||||
- name: perplexitybot
|
|
||||||
user_agent_regex: PerplexityBot/.+; \+https\://perplexity\.ai/perplexitybot
|
|
||||||
action: ALLOW
|
|
||||||
# https://www.perplexity.com/perplexitybot.json
|
|
||||||
remote_addresses: [
|
|
||||||
"107.20.236.150/32",
|
|
||||||
"3.224.62.45/32",
|
|
||||||
"18.210.92.235/32",
|
|
||||||
"3.222.232.239/32",
|
|
||||||
"3.211.124.183/32",
|
|
||||||
"3.231.139.107/32",
|
|
||||||
"18.97.1.228/30",
|
|
||||||
"18.97.9.96/29",
|
|
||||||
]
|
|
||||||
@@ -3,7 +3,5 @@
|
|||||||
- import: (data)/bots/ai-catchall.yaml
|
- import: (data)/bots/ai-catchall.yaml
|
||||||
- import: (data)/crawlers/ai-training.yaml
|
- import: (data)/crawlers/ai-training.yaml
|
||||||
- import: (data)/crawlers/openai-searchbot.yaml
|
- import: (data)/crawlers/openai-searchbot.yaml
|
||||||
- import: (data)/crawlers/perplexitybot.yaml
|
|
||||||
- import: (data)/clients/openai-chatgpt-user.yaml
|
- import: (data)/clients/openai-chatgpt-user.yaml
|
||||||
- import: (data)/clients/mistral-mistralai-user.yaml
|
- import: (data)/clients/mistral-mistralai-user.yaml
|
||||||
- import: (data)/clients/perplexity-user.yaml
|
|
||||||
|
|||||||
@@ -2,7 +2,5 @@
|
|||||||
- import: (data)/bots/ai-catchall.yaml
|
- import: (data)/bots/ai-catchall.yaml
|
||||||
- import: (data)/crawlers/openai-searchbot.yaml
|
- import: (data)/crawlers/openai-searchbot.yaml
|
||||||
- import: (data)/crawlers/openai-gptbot.yaml
|
- import: (data)/crawlers/openai-gptbot.yaml
|
||||||
- import: (data)/crawlers/perplexitybot.yaml
|
|
||||||
- import: (data)/clients/openai-chatgpt-user.yaml
|
- import: (data)/clients/openai-chatgpt-user.yaml
|
||||||
- import: (data)/clients/mistral-mistralai-user.yaml
|
- import: (data)/clients/mistral-mistralai-user.yaml
|
||||||
- import: (data)/clients/perplexity-user.yaml
|
|
||||||
|
|||||||
@@ -51,8 +51,9 @@ If you are using Kubernetes, you will need to create an image pull secret:
|
|||||||
kubectl create secret docker-registry \
|
kubectl create secret docker-registry \
|
||||||
techarohq-botstopper \
|
techarohq-botstopper \
|
||||||
--docker-server ghcr.io \
|
--docker-server ghcr.io \
|
||||||
--docker-username any-username \
|
--docker-username your-username \
|
||||||
--docker-password <your-access-token> \
|
--docker-password your-access-token \
|
||||||
|
--docker-email your@email.address
|
||||||
```
|
```
|
||||||
|
|
||||||
Then attach it to your Deployment:
|
Then attach it to your Deployment:
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import "time"
|
|||||||
|
|
||||||
// Challenge is the metadata about a single challenge issuance.
|
// Challenge is the metadata about a single challenge issuance.
|
||||||
type Challenge struct {
|
type Challenge struct {
|
||||||
IssuedAt time.Time `json:"issuedAt"` // When the challenge was issued
|
IssuedAt time.Time `json:"issuedAt"`
|
||||||
Metadata map[string]string `json:"metadata"` // Challenge metadata such as IP address and user agent
|
Metadata map[string]string `json:"metadata"`
|
||||||
ID string `json:"id"` // UUID identifying the challenge
|
ID string `json:"id"`
|
||||||
Method string `json:"method"` // Challenge method
|
Method string `json:"method"`
|
||||||
RandomData string `json:"randomData"` // The random data the client processes
|
RandomData string `json:"randomData"`
|
||||||
PolicyRuleHash string `json:"policyRuleHash,omitempty"` // Hash of the policy rule that issued this challenge
|
PolicyRuleHash string `json:"policyRuleHash,omitempty"`
|
||||||
Difficulty int `json:"difficulty,omitempty"` // Difficulty that was in effect when issued
|
Difficulty int `json:"difficulty,omitempty"`
|
||||||
Spent bool `json:"spent"` // Has the challenge already been solved?
|
Spent bool `json:"spent"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user