From 2e5c42cc8912723edc504186f3ad55389a1d235f Mon Sep 17 00:00:00 2001 From: Ty Clifford Date: Mon, 8 Jun 2026 12:28:03 -0400 Subject: [PATCH] - --- .htaccess | 21 +++++++++++++++++++++ README.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..7c6a3e9 --- /dev/null +++ b/.htaccess @@ -0,0 +1,21 @@ +# CyberChat .htaccess — Apache configuration + +# Deny direct access to SQLite databases + + Order Allow,Deny + Deny from all + + +# Deny direct access to db/ and archive/ directories + + RewriteEngine On + RewriteRule ^db/ - [F,L] + RewriteRule ^archive/ - [F,L] + + +# PHP settings (if allowed by host) + + php_value session.cookie_httponly 1 + php_value session.cookie_samesite Strict + php_value session.use_strict_mode 1 + diff --git a/README.md b/README.md index 367020b..7b43046 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# CYBERCHAT v3.0 +# Chat v2.0 A self-contained, embed-ready real-time web chat built with **PHP, JavaScript, HTML5, and SQLite**. No external dependencies beyond PHP 8.0+.