diff options
Diffstat (limited to 'static/api/contact.php')
| -rw-r--r-- | static/api/contact.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/static/api/contact.php b/static/api/contact.php index 4689b99..d8f2239 100644 --- a/static/api/contact.php +++ b/static/api/contact.php @@ -1,6 +1,6 @@ <?php /** - * Contact form handler for danix.me + * Contact form handler for danix.xyz * * Spam protection: * 1. Honeypot field — bots fill it, humans don't see it @@ -19,10 +19,10 @@ header('Cache-Control: no-store'); // Credentials are read from server environment variables — never hardcoded here. // Set them in your nginx fastcgi_param, Apache SetEnv, or hosting panel. const SENDER_DOMAIN = 'danix.xyz'; // used in From name and subject prefix -const ALLOWED_ORIGIN = 'https://danix.me'; // CSRF: only accept from this origin +const ALLOWED_ORIGIN = 'https://danix.xyz'; // CSRF: only accept from this origin const MIN_ELAPSED = 4; // seconds before submission is accepted const RATE_WINDOW = 300; // seconds between allowed submissions per IP -const RATE_DIR = '/var/lib/danixme/cf_rate'; // owned by www-data:www-data, mode 0700 +const RATE_DIR = '/var/lib/danixxyz/cf_rate'; // owned by www-data:www-data, mode 0700 // $cfg = [ // 'recipient' => getenv('MAIL_RECIPIENT') ?: '', @@ -117,7 +117,7 @@ use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception as MailerException; -$subjectLine = '[contact from danix.me] - ' . ($subject !== '' ? $subject : 'New message from ' . $name); +$subjectLine = '[contact from danix.xyz] - ' . ($subject !== '' ? $subject : 'New message from ' . $name); $body = implode("\n", [ 'Name: ' . $name, |
