Successful Anonymous Comment Filtering/Spam Control with Drupal 5.0
 
 


Connect with Sunny Day Online

Successful Anonymous Comment Filtering/Spam Control with Drupal 5.0

This is what Sunny Day Online does to control Spam in Drupal 5.0 with anonymous commenting enabled. I decided to publish this here to share with the Drupal community and also with our staff.

1) Use FormFilter module to remove homepage field and preview button.

A) Download module from Drupal.org and install it to sites/all/modules (http://drupal.org/project/formfilter).
B) Enable FormFilter module in admin/build/modules.
C) Go to FormFilter settings under Site Settings in admin (admin/settings/formfilter).
D) Make sure Filtering UI is checked and Simplify Node Form is enabled.
E) Edit user permissions to allow anonymous users to administer form filters under form filter module permissions. (admin/user/access)
F) Logout and visit a node that has comments enabled.
G) Scroll down to comment form and below Preview & Post Comment buttons, click on link called Filter this form. (note: if you do not see filter this form, you have require preview on in comment settings).
H) When page reloads, check all form fields you want to remove.
I) Use firebug or IE Developer Toolbar to edit the comment form action to read comment/reply/nid(node id)?formfilter_id=comment_form. (In other words append ?formfilter_id=comment_form to the end of the action that is already there.
J) Click on Post Comment.
K) Confirmation appears... Form filtering registered.
L) Login and remove anonymous access to administer form filters (enabled in step E above)
M) Go back to FormFilter settings and remove checkmark next to Filtering UI.

2)Install a module to assign an input filter to a Node Type. (FilterbyNodeType works and is described below)
A) Download module from Drupal.org and install to site server at sites/all/modules. (http://drupal.org/project/filterbynodetype)
B) Enable FilterbyNodeType module in admin/build/modules.
C) Go to Input Filters in admin/settings. (admin/settings/filters)
D) Create a filter entitled Anonymous Filter (or whatever you like) and set desired filter elements.
-Recommend HTML Filter with removed and line break converter along with rel="nofollow" enabled.
E) Make Anonymous Filter the default at admin/settings/filters by click on the radio button next to it and clicking Set as Default.
F) Go to admin/settings/filterbynodetype and remove the corresponding check mark for Anonymous Commenting for each node type.
*This will require an Input Filter to be selected each time a Node is created. What I did was picked the best input format for each node and only left that one checked for each node.

3) Install Spam Module.
A) Download module from Drupal.org and install to site server under sites/all/modules. (http://drupal.org/project/spam)
B) Enable module in admin/build/modules (all components except custom filter)
C) Configure the Spam module to desired specifications. (admin/settings/spam)

Good work! Your post/article

Good work! Your post/article is an excellent example of why I keep comming back to read your excellent quality content that is forever updated. Thank you! evden eve nakliyat

This is really a nice idea to

This is really a nice idea to control spam. Because spammers use to create links using the name field provided and the homepage field that will automatically link to their page. Great idea! Cheers ~ essay writers

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.