From 87d39749e35be46f066939efdb22d006a6e8d3b7 Mon Sep 17 00:00:00 2001 From: Pavlenex <36959754+pavlenex@users.noreply.github.com> Date: Thu, 12 Feb 2026 22:33:48 +0400 Subject: [PATCH] Security headers and sanitizing links --- .gitignore | 15 +++++++++++++++ index.html | 1 + public/.well-known/security.txt | 4 ++++ public/404.html | 1 + public/robots.txt | 1 - src/components/Footer.tsx | 3 ++- src/components/MerchantCard.tsx | 3 ++- src/components/ThemeProvider.tsx | 8 +++++--- src/lib/url.ts | 15 +++++++++++++++ src/pages/Directory.tsx | 23 +++++++++++++++++------ 10 files changed, 62 insertions(+), 12 deletions(-) create mode 100644 public/.well-known/security.txt create mode 100644 src/lib/url.ts diff --git a/.gitignore b/.gitignore index 1cf7629..7999938 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,18 @@ node_modules dist .vite *.local + +# Environment files +.env +.env.* + +# IDE +.idea +.vscode +*.swp +*.swo +*~ + +# OS +.DS_Store +Thumbs.db diff --git a/index.html b/index.html index ed3ca77..5913257 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ + BTCPay Server Directory diff --git a/public/.well-known/security.txt b/public/.well-known/security.txt new file mode 100644 index 0000000..ac2f91d --- /dev/null +++ b/public/.well-known/security.txt @@ -0,0 +1,4 @@ +Contact: https://github.com/btcpayserver/btcpayserver/security/policy +Expires: 2027-02-12T00:00:00.000Z +Preferred-Languages: en +Policy: https://github.com/btcpayserver/btcpayserver/security/policy diff --git a/public/404.html b/public/404.html index 5e8ed12..fe8bf25 100644 --- a/public/404.html +++ b/public/404.html @@ -2,6 +2,7 @@ + BTCPay Server Directory