Ready to get started?Download WordPress


Contact Form 7
[resolved] Block email address or domain (4 posts)

  1. swamparoo
    Posted 1 year ago #

    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.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 1 year ago #

    See Comment Blacklist.

    Comment Blacklist only blocks via IP address.

    No. You can use any words in it.

  3. swamparoo
    Posted 12 months ago #

    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.

  4. danbrady
    Posted 1 month ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic