djangogirls icon indicating copy to clipboard operation
djangogirls copied to clipboard

Prohibit links in contact form to limit spam

Open amakarudze opened this issue 2 years ago • 3 comments

We have started receiving spam messages from the [email protected] email address from our website. There is a need to prevent messages with links from submitting as well as enforce DMARC rejection and quarantine policies to prevent our domain from being misused.

amakarudze avatar Apr 11 '22 15:04 amakarudze

Seems the message did not come through our contact form or website. So this is a DMARC issue.

amakarudze avatar Apr 11 '22 15:04 amakarudze

If we've got access to a django form for this, then we can implement django-bleach to control what tags can be added (potentially).

marksweb avatar Jun 16 '22 10:06 marksweb

Hey @marksweb, we do have access to the django form. Let me look at django-bleach. Thanks!

amakarudze avatar Jun 20 '22 15:06 amakarudze