Go to file
olsch01 1219117adf Block example.com emails and homesites under 10
Spam submissions were still getting through with placeholder data. Two
more content filters on the public form endpoints:

- Reject emails from reserved documentation domains (example.com/.org/
  /.net/.edu and subdomains) and reserved TLDs (.test/.example/.invalid/
  localhost). testing@example.com and friends are never real leads.
- Reject a homesites count below 10. Real associations are larger; the
  junk uses 0/1/2.

Both are validated server-side in security.js (validateEmail gains a
domain blocklist, new validateHomesites) and mirrored client-side in
app.js for immediate feedback. The homesites input min attribute goes
from 1 to 10. Blocked submissions return 400 with a `field` hint and
store nothing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 09:30:15 -04:00
2026-04-02 08:12:18 -04:00
2026-03-09 14:45:46 -04:00
2026-03-03 08:58:15 -05:00
2026-04-01 11:08:34 -04:00
2026-03-16 14:08:42 -04:00
2026-04-01 11:34:53 -04:00
Description
No description provided
8.1 MiB
Languages
HTML 79.6%
JavaScript 11.9%
CSS 7.8%
Shell 0.7%