Title: Website Field Validation
Last modified: July 31, 2024

---

# Website Field Validation

 *  [elsazehra](https://wordpress.org/support/users/elsazehra/)
 * (@elsazehra)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/website-field-validation/)
 * I need website field validation. I’ve used the code mentioned below, but after
   using this code, the error messages do not appear after submitting the form, 
   and the spinner keeps rotating. The code is:
 * // Website field validation
   // add_filter( ‘wpcf7_validate_text*’, ‘custom_website_validation_filter’,
   20, 2 );// function custom_website_validation_filter( $result, $tag ) {// if (
   $tag->name == ‘website’ ) {
 * // $domain = isset( $_POST[‘website’] ) ? trim( $_POST[‘website’] ) : ”;
 * // if ( ! checkdnsrr($domain, ‘ANY’) ) { // Check DNS records corresponding to
   a given Internet host name or IP address
   // $result->invalidate( $tag, “We cannot
   find an active dns record for that website url” );// }// }// return $result;//}
   I’ve commented this code for now. Please check and help as this is urgent.
    -  This topic was modified 1 year, 10 months ago by [elsazehra](https://wordpress.org/support/users/elsazehra/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebsite-field-validation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [elsazehra](https://wordpress.org/support/users/elsazehra/)
 * (@elsazehra)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/website-field-validation/#post-17926333)
 * Awaiting response!

Viewing 1 replies (of 1 total)

The topic ‘Website Field Validation’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [elsazehra](https://wordpress.org/support/users/elsazehra/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/website-field-validation/#post-17926333)
 * Status: not resolved