Download the PHP package rah/rah_comment_spam without Composer

On this page you can find all versions of the php package rah/rah_comment_spam. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rah_comment_spam

h1. rah_comment_spam

"Download":https://github.com/gocom/rah_comment_spam/releases | "Packagist":https://packagist.org/packages/rah/rah_comment_spam | "Issues":https://github.com/gocom/rah_sitemap/issues

Rah_comment_spam provides customizable anti-spam tools for "Textpattern CMS'":https://textpattern.com comment system. Set minimum and maximum message length, filter spam words, validate email addresses, limit posting activity and set hidden spam traps. All from simple admin-side graphical user interface, no head first dive to code.

h2. Install

Using "Composer":https://getcomposer.org:

bc. $ composer require rah/rah_comment_spam

h2. Features

h2. Configuration

Once the plugin is installed, you can find set of new preferences in your Textpattern installation's Preferences panel. To configure rah_comment_spam's preferences navigate to Admin/Preferences and take a look at the Comments section. If you have commenting disabled on your site, you will have to toggle the Enable comments option to see the section.

h2. Preferences

Looking at the Preference's panel's Comments section, you should see set of options that weren't there before. Those are the options that the plugin offers. In total, there should be around 18 new toggle-able items. The offered plugin's options are as follows.

h3. What to do comments detected as spam?

The option sets the action that is taken towards to comments flagged as a spam. There are three options you can choose from. The default option is Save to moderation queue which saves the comments to moderation queue. The detected comments won't be visible to public, but are saved to moderation queue, and can be manually confirmed. The second option Ignore, do not save blocks the comments. The comments won't be saved and the user is greeted with the message set in Message displayed to the user when the comment was blocked option. The third and last option Save and flag as spam saves the detected comment to the database as spam.

h3. Message displayed to the user when the comment was blocked

Sets the message that is shown to users when their comment is blocked by the filters. The message is only used when the protection method above is set to Ignore, do not save. With others, Textpattern's build in language strings are used.

h3. List of spam words

Sets words/terms that are considered as something that spam would contain. Separate multiple words with commas (@,@). Used words are incase-sensitive. Example value: @viagra, wares, wowgold@.

h3. Search spam words from following fields

Sets which fields are filtered for spam words. Use comma-separated list of field names. Available values are @name@, @email@, @web@ and @message@. Default option is @name, email, web, message@.

h3. Maximum number of spam words until the comment is considered as spam

Sets the maximum number of spam words a comment can have until it's considered as spam. The lower the number, the stricter the filter is. Recommended value is between 2 to 10.

h3. Number of allowed URLs

Option sets comment message's URL limit. If a comment contains more URLs than the options allows, the comment is considered as spam.

h3. Minimum number of words

Required minimum length of comment message in words. Shorter messages are considered as spam. Recommended value is @1@ to @3@.

h3. Maximum number of words

Maximum length of comment message in words. Longer messages are considered as spam. Note that message's total size is limited to 65535 bytes (equals to around 65535 ASCII characters).

h3. Minimum number of characters

Required minimum length of comment in characters. Shorter messages are considers as spam. Recommended setting is @1@ to @10@.

h3. Maximum number of characters

Maximum length of comment in characters. Longer messages are considers as spam. Note that message's total size is limited to 65535 bytes. Valid values range from 0 to 65535 (equals to around 65535 ASCII characters).

h3. Name of hidden spam trap field

If set, hidden spam trap field is added to the comment form. The field will be hidden with CSS, and if the field is filled, the comment is considered as spam. Default value is phone. Empty the field to disable the spam trap.

h3. Use quotas, limit users' comment posting activity?

If set to Yes, users comment posting activity is limited. Comments going over the quota are considered as spam. Users are identified by their email addresses.

h3. Users' comment quota limit

Sets the user's quota limit. Default is ten (@10@) comments per user.

h3. Count users' comments towards quota in

Sets which comments in which articles are counted towards the quota limit. By default user's comments in any article are taken into count. Available settings are In all articles, counts comments site-wide, and In current article which counts only comments in the current article the new comment is being posted to.

h3. Quota resets every number of seconds

Sets the timespan used in the activity limiting. Comments older than this are not counted towards the quota limit. The time is set in seconds. For example setting the option to @600@, would count an user's comments from the last ten minutes, and if the number goes over the quota, then the comment is considered as spam.

h3. Check email's DNS records?

If set Yes, email address' DNS records are checked. If the domain is found to be non-existent, the comment is considered as spam. The feature requires "checkdnsrr()":https://secure.php.net/manual/en/function.checkdnsrr.php function and the server must be allowed to make outgoing connections.

h3. Check the time user spent writing the comment?

Makes sure that the user spent set amount of time writing the comment. Instant posters will be treated as spammers. Usually it's recommended to keep this feature disabled. It can accidentally block fast writers if the required time is set to too high, but it can also successfully block spam bots which might try to post comments instantly, without interacting with the comment form. The time is counted from the initial article page load to the comment's submitting.

h3. Minimum time required to be spent writing a comment?

Sets the required interaction time in seconds. Default is @5@. Higher values are not recommended usability-wise. If you set the value higher than 5 seconds, consider adding JavaScript based counter to the comment form that informs the users how much they have to wait.

h2. Changelog

h3. Version 0.10.0 - 2023/02/25

h3. Version 0.9.0 - 2019/03/24

h3. Version 0.8.0 - 2015/03/06

h3. Version 0.7 - 2011/11/03

h3. Version 0.6 - 2011/09/09

h3. Version 0.5 - 2010/09/15

h3. Version 0.4 - 2010/08/02

h3. Version 0.3 - 2009/12/02

h3. Version 0.2.1 - 2009/08/15

h3. Version 0.2 - 2009/05/04

h3. Version 0.1.3 - 2009/03/12

h3. Version 0.1.2 - 2009/01/22

h3. Version 0.1 - 2008/09/07


All versions of rah_comment_spam with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
textpattern/lock Version >=4.8.0
textpattern/installer Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rah/rah_comment_spam contains the following files

Loading the files please wait ....