<?php
/**
 * @ Author: Bill Minozzi
 * @ Copyright: 2020 www.BillMinozzi.com
 * @ Modified time: 2021-03-03 09:07:38
 */
if (!defined('ABSPATH')) {
    die('Direct access to this file is not allowed.');
}

// Display form
echo '<div class="wrap-recaptcha">' . "\n";
echo '<h2 class="title">' . esc_attr__("reCAPTCHA and Turnstile Quick Start Guide", "recaptcha-for-all") . '</h2>' . "\n";
echo '<p class="description">';

echo '<strong>' . esc_attr__("Welcome!", "recaptcha-for-all") . '</strong>';
echo '<br><br>';

echo '<strong>' . esc_attr__("This plugin protects your site against bots by using invisible reCAPTCHA v3 (Google) or Cloudflare Turnstile. You can choose to apply this protection to all pages or only selected ones. You can also protect Login Form (Forgot Password and Register) and Comment Form. Please check the Design and Analytics tabs to take advantage of these incredible features.", "recaptcha-for-all") . '</strong>';
echo '<br><br>';

echo '<strong>' . esc_attr__("Requirements:", "recaptcha-for-all") . '</strong>';
echo '<ul>';
echo '<li>' . esc_attr__("A Google Site Key and Secret Key for reCAPTCHA v3 or", "recaptcha-for-all") . '</li>';
echo '<li>' . esc_attr__("Turnstile keys from Cloudflare.", "recaptcha-for-all") . '</li>';
echo '</ul>';

echo '<strong>' . esc_attr__("Getting Your Keys:", "recaptcha-for-all") . '</strong>';
echo '<ul>';
echo '<li>' . esc_attr__("For Google reCAPTCHA v3 keys, visit:", "recaptcha-for-all") . ' <a href="https://www.google.com/recaptcha/admin">https://www.google.com/recaptcha/admin</a></li>';
echo '<li>' . esc_attr__("For Cloudflare Turnstile keys, visit:", "recaptcha-for-all") . ' <a href="https://www.cloudflare.com/products/turnstile/">https://www.cloudflare.com/products/turnstile/</a></li>';
echo '</ul>';

echo '<strong>' . esc_attr__("Choosing Widget Type:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("Cloudflare Turnstile offers three widget types. You can select your preferred type where you obtain your keys. We suggest try the Invisible.", "recaptcha-for-all");

echo '<br><br>';
echo '<p class="description">';
echo '<strong>' . esc_attr__("How the Plugin Works:", "recaptcha-for-all") . '</strong>';
echo '</p>';

echo '<br>';

echo '<strong>' . esc_attr__("First Visit:", "recaptcha-for-all") . '</strong>';
echo '<ul>';
echo '<li>' . esc_attr__("On a user's first visit to your site, they will see a box with a message and a button.", "recaptcha-for-all") . '</li>';
echo '<li>' . '<strong>' . esc_attr__("To protect your content from being stolen, safeguard your SEO, and prevent vulnerability scans, the plugin displays an image (such as a screenshot of your page) instead of the actual content. You can customize this image in the Design tab.", "recaptcha-for-all") . '</strong></li>';
echo '</ul>';

echo '<strong>' . esc_attr__("Verification:", "recaptcha-for-all") . '</strong>';
echo '<ul>';
echo '<li>' . esc_attr__("When the user clicks the button, the plugin sends a request to Google or Cloudflare to check the IP address.", "recaptcha-for-all") . '</li>';
echo '<li>' . esc_attr__("Google or Cloudflare will then provide an IP score (Note: Turnstile does not offer an IP score; the user's browser must accept cookies and have JavaScript enabled).", "recaptcha-for-all") . '</li>';
echo '<li>' . esc_attr__("Based on the score you set, the plugin will either allow access to the page or block it with a forbidden error.", "recaptcha-for-all") . '</li>';
echo '</ul>';

echo '<strong>' . esc_attr__("Bots Not Blocked:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("The plugin does not block well-known bots like Google, Bing (Microsoft), Facebook, Slurp (Yahoo), and Twitter. You can add additional IPs or User Agents to the whitelist.", "recaptcha-for-all");

echo '<br><br>';
echo '<p class="description">';
echo '<strong>' . esc_attr__("Setup Steps:", "recaptcha-for-all") . '</strong>';
echo '</p>';
echo '<br>';

echo '<strong>' . esc_attr__("Manage Keys:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("Click the 'Manage Keys' tab to enter your Google or Cloudflare Turnstile keys.", "recaptcha-for-all");

echo '<br><br>';

echo '<strong>' . esc_attr__("Manage Messages:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("Click the 'Manage Messages' tab to customize the message and button text if needed.", "recaptcha-for-all");

echo '<br><br>';

echo '<strong>' . esc_attr__("General Settings:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("Go to the 'General Settings' tab to choose between Google reCAPTCHA or Cloudflare Turnstile. If you select Google, set your desired IP score threshold.", "recaptcha-for-all");

echo '<br><br>';

echo '<strong>' . esc_attr__("Manage Pages:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("In the 'Manage Pages' tab, select the pages and/or posts where you want reCAPTCHA or Turnstile enabled.", "recaptcha-for-all");

echo '<br><br>';

echo '<strong>' . esc_attr__("Whitelist:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("Use the 'Manage Whitelist' tab to add IPs and User Agents that should be exempt from the checks. Don't forget to add your IP.", "recaptcha-for-all");

echo '<br><br>';

echo '<strong>' . esc_attr__("Testing:", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("To test the setup, try accessing your site from a different device or IP address where you haven’t logged in before. You can also try disabling cookies in your browser.", "recaptcha-for-all");

echo '<br><br>';

echo '<strong>' . esc_attr__("Need Help?", "recaptcha-for-all") . '</strong> ';
echo esc_attr__("Visit our FAQ page for more information.", "recaptcha-for-all");

echo '<br><br>';

echo esc_attr__('For detailed instructions, videos, FAQs, and troubleshooting, visit the plugin site.', 'recaptcha-for-all');
echo '<br><br>';
echo '<a href="https://recaptchaforall.com/" class="button button-primary">' . esc_attr__('Plugin Site', 'recaptcha-for-all') . '</a>';
echo '&nbsp;&nbsp;';
echo '<a href="https://recaptchaforall.com/faq/" class="button button-primary">' . esc_attr__('FAQ Page', 'recaptcha-for-all') . '</a>';
echo '&nbsp;&nbsp;';
echo '<a href="https://billminozzi.com/dove/" class="button button-primary">' . esc_attr__('Support Page', 'recaptcha-for-all') . '</a>';
echo '&nbsp;&nbsp;';
echo '<a href="https://siterightaway.net/troubleshooting/" class="button button-primary">' . esc_attr__('Troubleshooting Page', 'recaptcha-for-all') . '</a>';
//echo'&nbsp;&nbsp;';
//echo '<a href="https://recaptchaforall.com/premium/" class="button button-primary">' . esc_attr__('Go Pro', 'recaptcha-for-all') . '</a>';
echo '<br><br>';

echo '</div>';
?>
