WordPress.org

Ready to get started?Download WordPress

Forums

Remove URLs and EMAIL from comments (2 posts)

  1. bensmail
    Member
    Posted 1 year ago #

    I am looking for a way to automatically remove URLs and email addresses from comments. I've been searching but all I find is either simple word filters or posts about removing the email field from the comment post form.

    I need to remove email addresses that people type in the comments.

    Preferably also filter out common attempts to get past the filter, like adding spaces or replacing "@" with "(at)" etc...

  2. s_ha_dum
    Member
    Posted 1 year ago #

    This is not as easy as you might think. There are a hundred ways to mangle an email address. The best you can do is put together as series of filters that catch the ones you consider the most common. Just start with the filters you have found and tweak them. Sorry, that is probably not what you wanted to hear.

Topic Closed

This topic has been closed to new replies.

About this Topic