Title: exclude a specific page
Last modified: August 31, 2016

---

# exclude a specific page

 *  Resolved [sjlevy](https://wordpress.org/support/users/sjlevy/)
 * (@sjlevy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/exclude-a-specific-page-1/)
 * Thank you for the very effective plugin
 * Is there a way I can exclude WP-SpamShield from protecting a specific page?
 * I want to run an automated regression test (casperjs) against a Formidable Pro
   form. I find that WP-SpamShield is doing a good job of blocking the test.
 * I see the option to disable protection for all miscellaneous forms– however I
   would like to only disable for a specific form/URL. This way the other miscellaneous
   forms can remain protected.
 * Is there some functions.php code or other way I could add to do this?
 * Thank you
 * [https://wordpress.org/plugins/wp-spamshield/](https://wordpress.org/plugins/wp-spamshield/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/exclude-a-specific-page-1/#post-7227865)
 * Hi sjlevy,
 * There isn’t a way to exclude specific pages per se, but there are some WP-SpamShield
   hooks you can use that will help you accomplish essentially the same thing. It
   will allow you to bypass the Anti-spam for Miscellaneous Forms filter on-demand
   when you are running a specific function.
 * If you have added specific code to your functions.php, you can add the following
   to your theme’s functions.php:
 *     ```
       add_filter( 'wpss_misc_form_spam_check_bypass', 'your_custom_function', 10 );
       ```
   
 * You will need to create a function after this with some logic. To bypass the 
   filter, it needs to return a value of `TRUE`. Something like this should work:
 *     ```
       function your_custom_function( $bypass ) {
           // $bypass is FALSE by default - you need to change it to TRUE to bypass
   
           /**
            * Some logic here
            *     - check if you are on the specific page you want...
            *     - check if the appropriate function is firing...
            *     - ..or any other condition you want to test for...
            **/
   
           // If conditions are met...
           return TRUE;
   
           // If conditions are not met, and you want things to function as usual...
           // return FALSE;
       }
       ```
   
 * That will help you create the custom exclusion you need.
 * You can rename ‘your_custom_function’ to whatever you like. Just be sure to do
   it both in the “add_filter()” line and in your actual function. make sure it 
   is unique so it doesn’t break any plugins. Using a unique prefix is usually a
   good idea to prevent collisions: ‘fh65v_’ or whatever at the beginning of your
   function name. (Ex: ‘fh65v_your_custom_function’ ).
 * I hope that helps!
 * – Scott
 *  Thread Starter [sjlevy](https://wordpress.org/support/users/sjlevy/)
 * (@sjlevy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/exclude-a-specific-page-1/#post-7227874)
 * Thanks Scott,
 * That is exactly what I needed
 * You’ve got one of the most effective plugins, plus 100% response to support forums-
   nice work
 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/exclude-a-specific-page-1/#post-7227877)
 * You’re welcome! Outstanding. 🙂
 * Thank you for the positive feedback!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘exclude a specific page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-spamshield_08293a.svg)
 * [WP-SpamShield](https://wordpress.org/plugins/wp-spamshield/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-spamshield/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-spamshield/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-spamshield/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-spamshield/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-spamshield/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [redsand](https://wordpress.org/support/users/redsand/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/exclude-a-specific-page-1/#post-7227877)
 * Status: resolved