mirror of
https://git.hexahost.dev/smueller/HexaHost-Frontend.git
synced 2026-06-02 08:08:43 +00:00
Enhance security and configuration of contact form: Added Content Security Policy and Strict-Transport-Security headers in .htaccess for improved security. Updated error handling to use a single 404.php for various error codes. Removed deprecated config.php and composer.json files, and implemented IP address detection for better security. Added honeypot field for bot protection in contact form and improved session security settings in functions.php.
This commit is contained in:
@@ -51,9 +51,6 @@
|
||||
// Get form data
|
||||
const formData = new FormData(form);
|
||||
|
||||
// Add honeypot field (hidden field for bot protection)
|
||||
formData.append('website', ''); // Honeypot field
|
||||
|
||||
// Basic validation
|
||||
const data = {};
|
||||
for (let [key, value] of formData.entries()) {
|
||||
|
||||
Reference in New Issue
Block a user