Merge pull request #36 from poli0981/feat/security-txt
feat(security): security.txt, SECURITY.md, wider AI-crawler block
This commit is contained in:
4 files changed
+73
No files matched your search
+42
@@ -0,0 +1,42 @@
|
||||
# Security Policy
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
Email **contact@poli0981.dev**. Please include steps to reproduce and the affected URL.
|
||||
Do not open a public issue for a security problem.
|
||||
|
||||
Expect an acknowledgement within 7 days. This is a personal site maintained by one
|
||||
person, in their spare time — there is no bug bounty and no payout.
|
||||
|
||||
Machine-readable contact: <https://poli0981.dev/.well-known/security.txt> (RFC 9116).
|
||||
|
||||
## Scope
|
||||
|
||||
**In scope**
|
||||
|
||||
- `poli0981.dev` and its `/api/*` endpoints
|
||||
- This repository's build and deploy pipeline
|
||||
|
||||
**Out of scope**
|
||||
|
||||
- Findings that require an already-compromised Cloudflare or GitHub account
|
||||
- Volumetric denial of service
|
||||
- Missing hardening headers with no demonstrated impact
|
||||
- Reports that are only raw automated-scanner output, with no working proof of concept
|
||||
- Anything about the third-party services the site links out to (YouTube, Steam, Discord…)
|
||||
|
||||
## Supported versions
|
||||
|
||||
Only the currently deployed site (`main` → Cloudflare Workers) is supported. There are
|
||||
no tagged releases and no backports.
|
||||
|
||||
## What the site actually handles
|
||||
|
||||
Useful context when judging impact — the site is static and stores almost nothing:
|
||||
|
||||
- No accounts, no login, no session cookies, no ad or analytics trackers.
|
||||
- The only user-submitted input is the bug-report form, which is Turnstile-gated,
|
||||
schema-validated, and forwarded to a private GitHub issue and a Discord webhook.
|
||||
- IP addresses are used transiently for rate limiting and are not stored with reports.
|
||||
|
||||
See [`/legal/privacy`](https://poli0981.dev/legal/privacy/) for the full statement.
|
||||
@@ -0,0 +1,5 @@
|
||||
Contact: mailto:contact@poli0981.dev
|
||||
Expires: 2027-07-01T00:00:00Z
|
||||
Preferred-Languages: vi, en
|
||||
Canonical: https://poli0981.dev/.well-known/security.txt
|
||||
Policy: https://github.com/poli0981/poli0981-dev/blob/main/SECURITY.md
|
||||
@@ -9,3 +9,9 @@
|
||||
# The service worker must always revalidate so updates (bumped SHELL) propagate.
|
||||
/sw.js
|
||||
Cache-Control: no-cache
|
||||
|
||||
# RFC 9116 requires text/plain. Wrangler already infers it from the .txt extension at
|
||||
# upload time; this is belt-and-braces so a future asset-handling change can't break it.
|
||||
/.well-known/security.txt
|
||||
Content-Type: text/plain; charset=utf-8
|
||||
Cache-Control: public, max-age=86400
|
||||
@@ -5,10 +5,30 @@ Disallow: /api/
|
||||
# AI-training crawlers — blocked (content is All Rights Reserved; mirrors the
|
||||
# Cloudflare "Block AI Scrapers" toggle, docs 06/07/13).
|
||||
User-agent: GPTBot
|
||||
User-agent: OAI-SearchBot
|
||||
User-agent: ChatGPT-User
|
||||
User-agent: CCBot
|
||||
User-agent: Google-Extended
|
||||
User-agent: anthropic-ai
|
||||
User-agent: ClaudeBot
|
||||
User-agent: Claude-Web
|
||||
User-agent: Claude-SearchBot
|
||||
User-agent: PerplexityBot
|
||||
User-agent: Perplexity-User
|
||||
User-agent: Applebot-Extended
|
||||
User-agent: Bytespider
|
||||
User-agent: Amazonbot
|
||||
User-agent: Meta-ExternalAgent
|
||||
User-agent: Meta-ExternalFetcher
|
||||
User-agent: FacebookBot
|
||||
User-agent: cohere-ai
|
||||
User-agent: Diffbot
|
||||
User-agent: ImagesiftBot
|
||||
User-agent: Omgilibot
|
||||
User-agent: Timpibot
|
||||
User-agent: AI2Bot
|
||||
User-agent: DuckAssistBot
|
||||
User-agent: MistralAI-User
|
||||
Disallow: /
|
||||
|
||||
Sitemap: https://poli0981.dev/sitemap-index.xml
|
||||
Reference in new issue
Block a user