index.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * BSD 3-Clause License
  4. * @copyright (c) 2019, Google Inc.
  5. * @link https://www.google.com/recaptcha
  6. * All rights reserved.
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions are met:
  10. * 1. Redistributions of source code must retain the above copyright notice, this
  11. * list of conditions and the following disclaimer.
  12. *
  13. * 2. Redistributions in binary form must reproduce the above copyright notice,
  14. * this list of conditions and the following disclaimer in the documentation
  15. * and/or other materials provided with the distribution.
  16. *
  17. * 3. Neither the name of the copyright holder nor the names of its
  18. * contributors may be used to endorse or promote products derived from
  19. * this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  22. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  24. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  25. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  27. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  28. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  29. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. require __DIR__ . '/appengine-https.php';
  33. ?>
  34. <!DOCTYPE html>
  35. <html lang="en">
  36. <meta charset="UTF-8">
  37. <meta name="viewport" content="width=device-width,height=device-height,minimum-scale=1">
  38. <link rel="shortcut icon" href="https://www.gstatic.com/recaptcha/admin/favicon.ico" type="image/x-icon"/>
  39. <link rel="canonical" href="https://recaptcha-demo.appspot.com/">
  40. <script type="application/ld+json">{ "@context": "http://schema.org", "@type": "WebSite", "name": "reCAPTCHA demo", "url": "http://recaptcha-demo.appspot.com/" }</script>
  41. <meta name="description" content="reCAPTCHA demo" />
  42. <meta property="og:url" content="https://recaptcha-demo.appspot.com/" />
  43. <meta property="og:type" content="website" />
  44. <meta property="og:title" content="reCAPTCHA demo" />
  45. <meta property="og:description" content="Examples of the reCAPTCHA client." />
  46. <link rel="stylesheet" type="text/css" href="/examples.css">
  47. <title>reCAPTCHA demo</title>
  48. <header>
  49. <h1>reCAPTCHA demo</h1>
  50. </header>
  51. <main>
  52. <p>Try out the various forms of <a href="https://www.google.com/recaptcha/">reCAPTCHA</a>.</p>
  53. <p>You can find the source code for these examples on GitHub in <kbd><a href="https://github.com/google/recaptcha">google/recaptcha</a></kbd>.</p>
  54. <ul>
  55. <li><h2>reCAPTCHA v2</h2>
  56. <ul>
  57. <li><a href="/recaptcha-v2-checkbox.php">"I'm not a robot" checkbox</a></li>
  58. <li><a href="/recaptcha-v2-checkbox-explicit.php">"I'm not a robot" checkbox - Explicit render</a></li>
  59. <li><a href="/recaptcha-v2-invisible.php">Invisible</a></li>
  60. </ul>
  61. </li>
  62. <li><h2>reCAPTCHA v3</h2>
  63. <ul>
  64. <li><a href="/recaptcha-v3-request-scores.php">Request scores</a></li>
  65. </ul>
  66. </li>
  67. <li><h2>General</h2>
  68. <ul>
  69. <li><a href="/recaptcha-content-security-policy.php">Content Security Policy</a></li>
  70. </ul>
  71. </li>
  72. </ul>
  73. </main>
  74. <!-- Google Analytics - just ignore this -->
  75. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-123057962-1"></script>
  76. <script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-123057962-1');</script>