{"id":518772,"date":"2020-01-23T06:02:31","date_gmt":"2020-01-23T06:02:31","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=518543\/"},"modified":"2024-06-04T06:39:57","modified_gmt":"2024-06-04T06:39:57","slug":"comment-int%c3%a9grer-google-recaptcha-avec-php","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/","title":{"rendered":"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;?"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">De nos jours, tout le monde veut se d\u00e9barrasser du spam sur son site Web, qu&#8217;il s&#8217;agisse de commentaires ind\u00e9sirables, de messages ind\u00e9sirables ou de trafic de spam sur votre site. Pour prot\u00e9ger votre site Web contre le spam, l&#8217;un des moyens les meilleurs et les plus simples consiste \u00e0 utiliser <strong><a href=\"https:\/\/www.knowband.com\/fr\/search?search=google%20recaptcha\">Google reCAPTCHA.<\/a><\/strong><\/p>\n<p style=\"text-align: justify;\">Autrefois, les gens mettaient un nombre ou une cha\u00eene al\u00e9atoire sur l\u2019\u00e9cran et le v\u00e9rifiaient c\u00f4t\u00e9 serveur. Mais cette m\u00e9thode est l&#8217;ancienne m\u00e9thode et elle prend \u00e9galement du temps pour de nombreux utilisateurs, alors que la m\u00e9thode reCAPTCHA de Google est facile \u00e0 utiliser et prend moins de temps, ce qui se traduit par une meilleure exp\u00e9rience utilisateur. Il leur suffit d\u2019un simple clic pour prouver qu\u2019ils sont des humains et non un robot. Google reCAPTCHA est tr\u00e8s simple \u00e0 impl\u00e9menter dans un script PHP.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-518544\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1.png\" alt=\"Google reCAPTCHA\" width=\"495\" height=\"132\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1.png 616w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Picture2-1-300x80.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Lecture recommand\u00e9e:<\/strong> ,war<a href=\"https:\/\/www.knowband.com\/blog\/fr\/prestashop-blog-fr\/comment-integrer-la-protection-google-recaptcha-sur-votre-boutique-prestashop\/\">Comment int\u00e9grer la protection Google ReCaptcha sur votre boutique PrestaShop ?<\/a><\/p>\n<h2 style=\"text-align: justify;\">Dans ce blog, vous apprendrez comment int\u00e9grer Google reCaptcha \u00e0 PHP dans notre guide \u00e9tape par \u00e9tape.<\/h2>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/D\u00e9couvrez-comment-int\u00e9grer-Google-reCaptcha-\u00e0-PHP-dans-le-guide-\u00e9tape-par-\u00e9tape-de-Knowband.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824408 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/D\u00e9couvrez-comment-int\u00e9grer-Google-reCaptcha-\u00e0-PHP-dans-le-guide-\u00e9tape-par-\u00e9tape-de-Knowband.png\" alt=\"D\u00e9couvrez comment int\u00e9grer Google reCaptcha \u00e0 PHP dans le guide \u00e9tape par \u00e9tape de Knowband\" width=\"760\" height=\"398\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/D\u00e9couvrez-comment-int\u00e9grer-Google-reCaptcha-\u00e0-PHP-dans-le-guide-\u00e9tape-par-\u00e9tape-de-Knowband.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/D\u00e9couvrez-comment-int\u00e9grer-Google-reCaptcha-\u00e0-PHP-dans-le-guide-\u00e9tape-par-\u00e9tape-de-Knowband-300x157.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\">\u00c9tape\u00a01\u00a0: Pour r\u00e9cup\u00e9rer la cl\u00e9 API Google reCAPTCHA<\/h3>\n<p class=\"gt-block\" style=\"text-align: justify;\">Pour obtenir une cl\u00e9 API permettant d&#8217;utiliser reCAPTCHA avec PHP, vous devez enregistrer votre site Web sur &#8211; <a href=\"https:\/\/www.google.com\/recaptcha\/admin\" target=\"_blank\">https:\/\/www.google.com\/recaptcha\/admin<\/a>. Les captures d&#8217;\u00e9cran sont donn\u00e9es ci-dessous pour votre aide\u00a0:<\/p>\n<p class=\"gt-block alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824400 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2.png\" alt=\"R\u00e9cup\u00e9rer la cl\u00e9 API Google reCAPTCHA - Knowband\" width=\"845\" height=\"684\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2.png 845w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2-300x243.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Fetch-the-Google-reCAPTCHA-API-key-Knowband-2-768x622.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><br \/>\n<strong>\u00c9tiquette:<\/strong> Utilisez une \u00e9tiquette de votre choix, afin qu&#8217;il soit facile de reconna\u00eetre le site \u00e0 l&#8217;avenir. Vous pouvez ajouter le nom de votre marque ou l&#8217;URL du site Web dans ce champ pour am\u00e9liorer la lisibilit\u00e9 du nom du projet.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Tapez reCAPTCHA\u00a0:<\/strong> Choisissez le type de reCAPTCHA que vous pr\u00e9f\u00e9rez pour votre site. Il existe actuellement deux types disponibles, \u00e0 savoir reCAPTCHA v3 et reCAPTCHA v2. Nous avons utilis\u00e9 reCAPTCHA v2 dans l&#8217;exemple de projet.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Domaines:<\/strong> Ici, vous devez saisir le nom de votre site Web pour lequel vous allez impl\u00e9menter la fonctionnalit\u00e9 reCAPTCHA. Cela s&#8217;applique aux domaines que vous saisissez ici, ainsi qu&#8217;\u00e0 ses sous-domaines. Par exemple, une inscription sur abc.com enregistre \u00e9galement xyz.abc.com.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Maintenant, cochez simplement la case de <strong>Acceptez les conditions d&#8217;utilisation de reCAPTCHA et cliquez sur<\/strong> sur le bouton Soumettre.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Vous disposez d\u00e9sormais de la cl\u00e9 de site et de la cl\u00e9 secr\u00e8te de votre site Web.<br \/>\n<a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824401 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website.png\" alt=\"la cl\u00e9 du site et la cl\u00e9 secr\u00e8te pour votre site Web - Knowband\" width=\"845\" height=\"448\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website.png 845w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website-300x159.png 300w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/The-site-key-and-secret-key-for-your-website-768x407.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><\/p>\n<h3 style=\"text-align: justify;\">\u00c9tape 2\u00a0: Pour impl\u00e9menter Google reCaptcha avec PHP, la deuxi\u00e8me \u00e9tape consiste \u00e0 impl\u00e9menter la fonctionnalit\u00e9 reCAPTHA sur votre site\u00a0:<\/h3>\n<ul>\n<li style=\"text-align: justify;\">Pour ajouter reCAPTCHA en PHP, vous devez d&#8217;abord inclure la biblioth\u00e8que JavaScript reCAPTCHA dans votre code HTML.\n<pre class=\"brush: actionscript3; gutter: true\"><\/pre>\n<\/li>\n<li style=\"text-align: justify;\">Ajoutez maintenant ce code HTML \u00e0 l&#8217;endroit o\u00f9 vous souhaitez afficher le widget reCAPTCHA.\n<pre class=\"brush: actionscript3; gutter: true\"><\/pre>\n<\/li>\n<li style=\"text-align: justify;\">Remplacez &#8220;site_key&#8221; par la cl\u00e9 de site fournie par Google pour votre site Web.<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align: justify;\">C&#8217;est fait maintenant, actualisez simplement votre page et vous verrez le widget reCAPTCHA sur votre site.<\/li>\n<\/ul>\n<h3 style=\"text-align: justify;\">\u00c9tape 3\u00a0: Pour valider la r\u00e9ponse de l&#8217;utilisateur<\/h3>\n<p style=\"text-align: justify;\">D\u00e9sormais, vous devez valider la r\u00e9ponse lorsqu&#8217;un utilisateur clique sur le widget reCAPTCHA. Le code PHP permettant de v\u00e9rifier la r\u00e9ponse de l&#8217;utilisateur est donn\u00e9 ci-dessous\u00a0:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">success) { $succMsg = &#039;Votre demande de contact a \u00e9t\u00e9 soumise avec succ\u00e8s.&#039;; } else { $errMsg = &#039;La v\u00e9rification du robot a \u00e9chou\u00e9, veuillez r\u00e9essayer.&#039;; } } ?&gt;<\/pre>\n<p style=\"text-align: justify;\">Ajoutez votre cl\u00e9 secr\u00e8te r\u00e9elle dans le code ci-dessus et vous avez termin\u00e9.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\">Obtenez l&#8217;exemple de code <a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/recaptcha_blog.txt\" target=\"_blank\">ici<\/a>.<\/p>\n<p class=\"gt-block\" style=\"text-align: justify;\"><strong>Lecture recommand\u00e9e:<\/strong> <a href=\"https:\/\/www.knowband.com\/blog\/fr\/prestashop-blog-fr\/deux-modules-efficaces-pour-%c3%a9loigner-les-spammeurs-et-les-bots-de-la-boutique-prestashop\/\">Deux modules efficaces pour \u00e9loigner les spammeurs et les robots de la boutique PrestaShop<\/a><\/p>\n<p class=\"gt-block alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Module-Google-reCaptcha-disponible-pour-Prestashop-et-Opencart-par-Knowband.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824411 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Module-Google-reCaptcha-disponible-pour-Prestashop-et-Opencart-par-Knowband.png\" alt=\"Module Google reCaptcha disponible pour Prestashop et Opencart par Knowband\" width=\"760\" height=\"395\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Module-Google-reCaptcha-disponible-pour-Prestashop-et-Opencart-par-Knowband.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Module-Google-reCaptcha-disponible-pour-Prestashop-et-Opencart-par-Knowband-300x156.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a>Knowband propose le module compl\u00e9mentaire Google ReCaptcha pour diverses plates-formes, notamment <strong><a href=\"https:\/\/www.knowband.com\/fr\/prestashop-google-recaptcha\">PrestaShop<\/a>, <\/strong>et de<strong> <a href=\"https:\/\/www.knowband.com\/fr\/opencart-google-recaptcha\">OpenCart<\/a>.<\/strong> Le module Google ReCaptcha est un outil de s\u00e9curit\u00e9 puissant qui prot\u00e8ge votre site Web contre les entr\u00e9es de spam tout en facilitant un acc\u00e8s facile aux utilisateurs r\u00e9els.<\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guide-Knowband-sur-le-plugin-Google-Recaptcha-pouvant-\u00eatre-utilis\u00e9-sous-diverses-formes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-824412 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guide-Knowband-sur-le-plugin-Google-Recaptcha-pouvant-\u00eatre-utilis\u00e9-sous-diverses-formes.png\" alt=\"Guide Knowband sur le plugin Google Recaptcha pouvant \u00eatre utilis\u00e9 sous diverses formes\" width=\"760\" height=\"398\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guide-Knowband-sur-le-plugin-Google-Recaptcha-pouvant-\u00eatre-utilis\u00e9-sous-diverses-formes.png 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Guide-Knowband-sur-le-plugin-Google-Recaptcha-pouvant-\u00eatre-utilis\u00e9-sous-diverses-formes-300x157.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\">Le plugin Google ReCaptcha peut \u00eatre utilis\u00e9 pour la connexion, l&#8217;enregistrement, la r\u00e9initialisation du mot de passe, les formulaires de contact connus et bien d&#8217;autres choses. Les images sont affich\u00e9es dans le module compl\u00e9mentaire Google ReCaptcha dans le cadre de leurs processus de validation standard pour aider \u00e0 identifier les humains.<\/p>\n<p class=\"alignnone\" style=\"text-align: justify;\">Ce module Google reCaptcha offre d&#8217;excellentes performances et est extr\u00eamement personnalisable. Depuis le back-end des modules Knowband, l&#8217;e-commer\u00e7ant peut ajuster rapidement l&#8217;addon Google reCaptcha.<\/p>\n<div class=\"module_in_content_container\">\n<div class=\"module_content\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"module_image\" src=\"https:\/\/www.knowband.com\/image\/cache\/data\/Plugin%20Logo\/recaptcha-300x300.png\" alt=\"Knowband - Prestashop Google ReCaptcha Addon\" width=\"100\" height=\"100\" \/><\/p>\n<div class=\"module_content_part\">\n<h3 class=\"title\">Module compl\u00e9mentaire Prestashop Google ReCaptcha<\/h3>\n<p class=\"module_content_text\">PrestaShop Google reCaptcha de Knowband am\u00e9liore la s\u00e9curit\u00e9 de votre boutique en int\u00e9grant Google reCaptcha, emp\u00eachant ainsi le spam et les robots automatis\u00e9s.<\/p>\n<p><a class=\"link_2_to_module\" style=\"display: inline-block; color: #f36!important;\" href=\"https:\/\/www.knowband.com\/fr\/prestashop-google-recaptcha\" target=\"_blank\" rel=\"noopener\"><span class=\"read-more\">Achetez maintenant<\/span><\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<style>\n.module_in_content_container { display: flex; flex-direction: column; padding: 20px; border: 1px solid #ccc; font-size: 16px; line-height: 26px; box-shadow: 0 3px 0 #ebebeb; -webkit-box-shadow: 0 3px 0 #ebebeb; position: relative; margin-bottom: 1.5em; } .module_in_content_container>a { position: absolute; left: 0; top: 0; width: 100%; height: 100%; } .module_content { display: flex; align-items: flex-start; } .module_content img { max-width: 100px; margin-right: 20px; } .module_content_part p.module_content_text { margin-bottom: 10px; margin-top: 0; font-size: 18px; color: #000; } .module_content h3 { font-size: 24px; font-weight: 700; line-height: 1.5em; padding-left: 0; padding-top: 0; margin: 0; } .read-more { font-size: 18px; font-weight: 700; line-height: 1.5em; position: relative; display: inline-block; text-transform: uppercase; color: #f36; } .read-more:after { position: absolute; content: ''; width: 1.5em; height: 1.5em; top: -1px; right: -1.5em; background: url(https:\/\/knowband.com\/mobile-app\/wp-content\/uploads\/images\/readmore-arrow.svg) no-repeat center \/ .75em; transition: all .2s; } .read-more:focus, .read-more:hover { text-decoration: none; cursor: pointer; } .read-more:hover:after { right: -2em; transition: all .2s; } @media (max-width: 600px) { .module_content { flex-direction: column; align-items: center; text-align: center; } .module_content img { margin: 0 auto 20px auto; max-width: 100%; } .module_content .title { flex-basis: auto; margin-top: 20px; } .module_content_part p.module_content_text { font-size: 16px; line-height: 24px; } .read-more { font-size: 16px;}}<\/style>\n<h2 style=\"text-align: justify;\">Mots finaux:<\/h2>\n<p>La mise en \u0153uvre de Google reCAPTCHA sur les sites Web est essentielle pour la s\u00e9curit\u00e9. Il permet de distinguer les vrais utilisateurs des robots, emp\u00eachant ainsi le spam et les attaques automatis\u00e9es. Cela prot\u00e8ge les donn\u00e9es des utilisateurs et garantit le bon fonctionnement du site Web. En bloquant le trafic nuisible, reCAPTCHA am\u00e9liore l&#8217;exp\u00e9rience utilisateur, rendant les interactions en ligne plus s\u00fbres et plus fiables.<\/p>\n<p><strong>Lecture recommand\u00e9e &#8211;<\/strong> <a href=\"https:\/\/www.knowband.com\/blog\/fr\/prestashop-blog-fr\/renforcez-la-s%c3%a9curit%c3%a9-de-votre-boutique-prestashop-avec-les-meilleurs-modules-prestashop-de-knowband\/\">Renforcez la s\u00e9curit\u00e9 de votre boutique PrestaShop avec les meilleurs modules PrestaShop de Knowband<\/a><br \/>\nParall\u00e8lement \u00e0 cela, Google reCaptcha est \u00e9galement compatible avec One Page Checkout de Knowband, vous prot\u00e9geant contre la fraude aux transactions. C&#8217;est le meilleur moyen de prot\u00e9ger votre boutique contre la fraude transactionnelle. Pour voir la d\u00e9mo d&#8217;administration et la d\u00e9mo frontale du module Google reCaptcha, visitez notre <a href=\"https:\/\/www.knowband.com\/fr\/search?search=google%20recaptcha\">Boutique<\/a>.<\/p>\n<p><strong>\u00c9vitez de laisser les spammeurs nuire \u00e0 votre entreprise\u00a0!<\/strong><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/rdMl51HiB4g\" width=\"660\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; De nos jours, tout le monde veut se d\u00e9barrasser du spam sur son site Web, qu&#8217;il s&#8217;agisse de commentaires ind\u00e9sirables, de messages ind\u00e9sirables ou de trafic de spam sur votre site. Pour prot\u00e9ger votre site Web contre le spam, l&#8217;un des moyens les meilleurs et les plus simples consiste \u00e0 utiliser Google reCAPTCHA. Autrefois, [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":824407,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1120],"tags":[20024,34889,20025,20026,28330,34888],"class_list":["post-518772","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-conseils-fr","tag-google-recaptcha-avec-php","tag-intgration-de-google-recaptcha","tag-intgration-google-recaptcha","tag-intgrer-google-recaptcha","tag-recaptcha-google-avec-php","tag-rcupration-de-google-avec-php"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;? - Knowband Blog | Ecommerce Modules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int\u00e9grer-google-recaptcha-avec-php\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"&nbsp; De nos jours, tout le monde veut se d\u00e9barrasser du spam sur son site Web, qu&#8217;il s&#8217;agisse de commentaires ind\u00e9sirables, de messages ind\u00e9sirables ou de trafic de spam sur votre site. Pour prot\u00e9ger votre site Web contre le spam, l&#8217;un des moyens les meilleurs et les plus simples consiste \u00e0 utiliser Google reCAPTCHA. Autrefois, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int\u00e9grer-google-recaptcha-avec-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-23T06:02:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-04T06:39:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aparajita Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aparajita Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/\"},\"author\":{\"name\":\"Aparajita Singh\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\"},\"headline\":\"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;?\",\"datePublished\":\"2020-01-23T06:02:31+00:00\",\"dateModified\":\"2024-06-04T06:39:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/\"},\"wordCount\":903,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png\",\"keywords\":[\"Google recaptcha avec PHP\",\"int\u00e9gration de Google reCAPTCHA\",\"int\u00e9gration google reCAPTCHA\",\"Int\u00e9grer google reCAPTCHA\",\"Recaptcha Google avec PHP\",\"R\u00e9cup\u00e9ration de Google avec PHP\"],\"articleSection\":[\"conseils\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/\",\"name\":\"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png\",\"datePublished\":\"2020-01-23T06:02:31+00:00\",\"dateModified\":\"2024-06-04T06:39:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png\",\"width\":760,\"height\":300,\"caption\":\"Int\u00e9grez Google reCAPTCHA avec PHP - Knowband\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-int%c3%a9grer-google-recaptcha-avec-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/7f6731df6c49b884493e2b8e92c7c33c\",\"name\":\"Aparajita Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/IMG-20200131-WA0005-150x150.jpg\",\"caption\":\"Aparajita Singh\"},\"description\":\"Aparajita Singh is an experienced Software engineer in PHP. She also has knowledge of C, JAVA and database design. She has been working in the IT Industry from the last 2yrs and still looking forward to achieving more in the IT industry. She lives in New Delhi and her hobby is to write the technical writeups.\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/author\\\/aparajitasingh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;? - Knowband Blog | Ecommerce Modules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int\u00e9grer-google-recaptcha-avec-php\/","og_locale":"fr_FR","og_type":"article","og_title":"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;? - Knowband Blog | Ecommerce Modules","og_description":"&nbsp; De nos jours, tout le monde veut se d\u00e9barrasser du spam sur son site Web, qu&#8217;il s&#8217;agisse de commentaires ind\u00e9sirables, de messages ind\u00e9sirables ou de trafic de spam sur votre site. Pour prot\u00e9ger votre site Web contre le spam, l&#8217;un des moyens les meilleurs et les plus simples consiste \u00e0 utiliser Google reCAPTCHA. Autrefois, [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int\u00e9grer-google-recaptcha-avec-php\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2020-01-23T06:02:31+00:00","article_modified_time":"2024-06-04T06:39:57+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png","type":"image\/png"}],"author":"Aparajita Singh","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Aparajita Singh","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/"},"author":{"name":"Aparajita Singh","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c"},"headline":"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;?","datePublished":"2020-01-23T06:02:31+00:00","dateModified":"2024-06-04T06:39:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/"},"wordCount":903,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png","keywords":["Google recaptcha avec PHP","int\u00e9gration de Google reCAPTCHA","int\u00e9gration google reCAPTCHA","Int\u00e9grer google reCAPTCHA","Recaptcha Google avec PHP","R\u00e9cup\u00e9ration de Google avec PHP"],"articleSection":["conseils"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/","url":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/","name":"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png","datePublished":"2020-01-23T06:02:31+00:00","dateModified":"2024-06-04T06:39:57+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Int\u00e9grez-Google-reCAPTCHA-avec-PHP-Knowband.png","width":760,"height":300,"caption":"Int\u00e9grez Google reCAPTCHA avec PHP - Knowband"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-int%c3%a9grer-google-recaptcha-avec-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Comment int\u00e9grer Google reCAPTCHA avec PHP&nbsp;?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/7f6731df6c49b884493e2b8e92c7c33c","name":"Aparajita Singh","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/IMG-20200131-WA0005-150x150.jpg","caption":"Aparajita Singh"},"description":"Aparajita Singh is an experienced Software engineer in PHP. She also has knowledge of C, JAVA and database design. She has been working in the IT Industry from the last 2yrs and still looking forward to achieving more in the IT industry. She lives in New Delhi and her hobby is to write the technical writeups.","url":"https:\/\/www.knowband.com\/blog\/fr\/author\/aparajitasingh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/518772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/comments?post=518772"}],"version-history":[{"count":4,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/518772\/revisions"}],"predecessor-version":[{"id":824872,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/518772\/revisions\/824872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media\/824407"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media?parent=518772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/categories?post=518772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/tags?post=518772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}