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 @@
+