Viewing 1 replies (of 1 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Wizards,

    I’m sorry but I can’t test Gravity forms. The followings are my guesses.

    As I invested how gravity forms handles the posted requests in the demo page, I guess the gravity forms would accept the requests on the same URL of the page. It means the posted requests might be thrown to the public facing URL.

    In this case, you have to enable “Block by country” at “Public facing pages” in “Front-end target settings” section on IP Geo Block “Settings” tab.

    Or based on the documentation of gravity forms, you have to add the following snippet in your theme’s functions.php.

    add_action( 'gform_pre_submission', 'pre_submission_handler' );
    function pre_submission_handler( $form ) {
        $ipgb = IP_Geo_Block::get_instance();
        $ipgb->validate_ip( 'comment', IP_Geo_Block::get_option() );
    }

    If you select “mu-plugins (ip-geo-block-mu.php” as “Validation timing” in “Validation rule settings” section, the above snippet should be placed drop-in.php in your geolocation API library folder. In this case, please refer to the FAQ “My custom functions in “functions.php” doesn’t work.“.

    Again, I’m sorry but I can’t tell the above code snippet works fine of not. I’d appreciate you if you give me some feed back after your test.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Russia is blacklisted but still I received info from them through gravity form’ is closed to new replies.