Block example.com emails and homesites under 10 #26
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/block-example-domain-and-min-homesites"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #24 and #25. Spam was still coming through with placeholder content, so two more filters on the public form endpoints.
What this blocks
Reserved / documentation email domains.
testing@example.comand anything atexample.com/.org/.net/.edu(including subdomains likemail.example.com), plus the reserved TLDs.test,.example,.invalid, andlocalhost. These are never real leads.Homesites under 10. Real associations are larger; the junk submissions use
0/1/2. The floor is 10.How
security.validateEmail()gains a domain blocklist (email_blockedreason); newsecurity.validateHomesites()enforces the floor.app.jsfor immediate feedback; the server stays authoritative.minattribute in the HTML goes 1 → 10.400with afieldhint (email/homesites) and store nothing.Verification (24 assertions, all passing)
Blocked:
testing@example.com,anything@example.com,user@example.org,user@mail.example.com,foo@bar.test,foo@host.invalid; homesites0,1,9,9.9,-5,abc, missing.Still accepted:
board@myhoa.org,chair@example-hoa.com(notexample.com),a@notexample.com; homesites10,11,150,"250".🤖 Generated with Claude Code