﻿=== Custom Validation for CF7 ===
Contributors: momomedia
Donate link: https://momomedia.com.au
Tags: contact-form-7 validation, phone and email, block URL, spam, security
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.10
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Advanced validation for Contact Form 7: block URLs, validate phone and email, with admin settings.

== Description ==
Custom Validation for CF7 adds powerful validation features to Contact Form 7 forms.  
It allows you to:
* Block URLs in messages or all fields
* Validate phone numbers by exact digit count
* Validate email addresses with admin-defined messages
* Configure messages and rules via a simple admin interface

This plugin is ideal for preventing spam and enforcing strict form input standards on your WordPress site.

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/custom-validation-for-cf7` directory, or install the plugin via the WordPress Plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to the **Custom Validation for CF7** admin menu to configure phone, email, and URL validation rules.
4. Save your settings and your forms will automatically use the validation rules.

== Frequently Asked Questions ==

= Does this plugin work with all Contact Form 7 forms? =
Yes, it hooks into Contact Form 7’s validation filters and applies to all forms on your site.

= Can I block URLs only in textareas? =
Yes, there is an option to block URLs in textareas only or in all fields (max security).

= Can I customise the error messages? =
Absolutely. All error messages for phone, email, and URL validation can be customised from the settings page.

== Screenshots ==
1. Plugin Settings Page – Enable/disable rules and configure messages.
2. Settings form for phone digits and messages.
3. Example of URL block validation in a form.

== Changelog ==
= 1.9 =
* Now all fields blocked for url and spammy characters

= 1.9 =
* Now all fields blocked for url

= 1.8 =
* logic is now corrected 

= 1.7 =
* Stable release
* Security enhancements applied

= 1.6 =
* Plugin stable release
* Admin interface improvements
* Enhanced URL blocking functionality

= 1.5 =
* Minor bug fixes
* Improved phone validation

= 1.4 =
* Initial public release
* Phone, email, and URL validation functionality

== Upgrade Notice ==
= 1.7 =
If upgrading from version 1.6 or earlier, please review the settings page to ensure all rules and messages are set according to your needs.

== Credit ==
Developed by [MOMO Media](https://momomedia.com.au). Contact us for custom development or support.

== License ==
This plugin is licensed under the GPLv2 (or later). See the License URI above.
