Can’t see captcha if “Lock and Protect System Folders” is active

[ad_1]

Hello @doubledeckerbus,

The 403 Forbidden error means that the plugin is trying to execute a PHP script from within one of the system folders which have been protected, when the “Lock and Protect System Folders” option was enabled.

I was able to recreate the reported behaviour on a test installation, on my end.

In order to allow certain scripts to be executed from said system folders, while also keeping the option enabled, you can use the bellow filter:

add_filter( ‘sgs_whitelist_wp_content’ , ‘whitelist_file_in_wp_content’ );
function whitelist_file_in_wp_content( $whitelist ) {
    $whitelist[] = ‘file_name.php’;
    $whitelist[] = ‘another_file_name.php’;
    return $whitelist;
}

while substituting the example file names, with the actual file names of the Cartpauj Register Captcha.

More on how to apply the filter can be seen in the plugin’s Details page. After the filter is applied, make sure to disable and re-enable the “Lock and Protect System Folders” option in order for the updated rules to be generated.

Best Regards,
Gergana Petrova

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer