WordPress.org

Forums

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

  1. swamparoo
    Member
    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.

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

  2. Takayuki Miyoshi
    Member
    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
    Member
    Posted 1 year 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
    Member
    Posted 4 months 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

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic