WordPress.org

Support

Support » Plugins and Hacks » Contact Form 7 » [Resolved] Block email address or domain

[Resolved] Block email address or domain

  • I would like to be able to block domains for e-mail addresses. Mainly, if a user puts an e-mail address of @yahoo.com in the From filed it would give an error. Would be nice to have a custom error message for this. I don’t see any type of blacklist other than the Comment Blacklist. Comment Blacklist only blocks via IP address. I don’t need to block by IP address.

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    @takayukister

    See Comment Blacklist.

    Comment Blacklist only blocks via IP address.

    No. You can use any words in it.

    Was hoping to have a custom error message but this works fine. I’ll just put a warning on the contact form letting users know that certain e-mail domains are blocked. Tested it out and it works fine. This combined with Ban Hammer solves my issue of people using a certain e-mail provider on the contact form or trying to sign up using this e-mail provider’s email accounts.

    The problem with comment blacklist is that it matches inside words. ie you can’t give it an exact match or phrase.

    So “seo” produces false positives such as “Gaseous”

    Not that I expect many messages will contain “Gaseous”, but you see the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Block email address or domain’ is closed to new replies.
Skip to toolbar