The Official Blog of Patcoola

Im just a dude watching over my parents,
and trying to make cartoons and video games from home.

Project: Tightening Wordpess Comment Filters

Important!

Dear visitors,

This blog and the Tigarus.com network will be changing our website software in May (2024). There will be some down time and there will be a change to the webpage addresses.

We will also be removing the Anime blogs. The Rocksmith Songs website will be unavailable of a few weeks or months while I move the database to the new software.

At the moment we are running on Wordpress, the new software is an in-house project which is 57 times faster. It will also provide more freedom for development.

Thank you for understanding.

, By Patcoola

Project: Tightening Wordpess Comment Filters
Programming Language: PHP
Publication Date: 2011/06/10
Last Updated: 2012/09/02
Change Log [Click Here]

Purpose: To add strict validation and Spam filters to WordPress’s Comments and Trackbacks.

Advertisement

Donate Now!

Hi there, I spend a lot of time making this blog.

It would be great if you would consider donating.


Description: To combat the on going battle of Spam and Spam Bots I have modified WordPress’s Comments and Trackbacks coding to include much stronger filters/validation, because WordPress basically has none.

The following validation filter’s have been added, please let me know if more is needed.

Comment Features

Public Author’s Name:

  • Author’s name is limited to 32 characters
  • Author’s name may contain only one space
  • Author’s name should not contain :// or www.
  • Author’s name cannot be an E-mail address
  • Author’s name should not contain black-listed words

Author’s Website:

  • Author’s URL Validation
  • Author’s URL should not contain black-listed words
  • Author’s URL should not be longer than 64 characters
  • Author’s URL should not contain more than one sub directory
  • Author’s URL should not be the same as author’s name
  • Author’s URL should not be an E-mail address
  • Author’s URL can be domains that is not yours
    IE: bing.com, google.com, yahoo.com, etc
    Profiles and Blogs are ok, EX: facebook.com/myProfileName
  • Author’s URL cannot be a URL of a search engine query
    IE: google.com/search?q=keyword

Author’s E-mail Address:

  • Author’s E-mail should not contain black-listed words

Comments:

  • Comments must not be empty nor shorter than six characters, excluding spaces
  • Comments must contain at least three words
  • Comments should not contain BB tags
  • Comments cannot be in all capitalized letters
  • Comments may have a maximum of three links
  • Comments cannot contain black-listed URLs
  • Comments cannot contain black-listed keywords in URLs or Anchors
  • Comments limited to five blank line breaks
  • Comments limited to 25 line breaks/paragraphs
  • Comments, a paragraph may contain up to 125 words

Author’s IP Address:

  • Disallow posts from a hidden IP address
  • WordPress Remote Address and Standard Remote Address must match

Trackback Features:

  • Blog name should not contain black-listed words
  • Trackback URL should not contain black-listed words

At the moment these filters are a core modification and not a plug-in; I do plan to make the core modifications publicly available for download in the near future.

Tested with WordPress 3.1.x
View change log for [Tightening Wordpess Comment Filters]

 


Pages: 1 2

 

Advertisement

Donate Now!

Hi there, I spend a lot of time making this blog.

It would be great if you would consider donating.


 

Post Meta

Share Post

 

Comments: Write Comment

Be the first to write a comment.


Leave a Comment


All comments are reviewed before publishing. Comments must be related to the page topic, must not be spam, and must comply with the criminal code of Canada.