{"id":7924,"date":"2019-04-25T06:22:19","date_gmt":"2019-04-25T06:22:19","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=7924"},"modified":"2019-08-01T11:40:36","modified_gmt":"2019-08-01T11:40:36","slug":"license-key-not-activating-when-using-wordfence","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/license-key-not-activating-when-using-wordfence\/","title":{"rendered":"License key not activating when using WordFence"},"content":{"rendered":"\n<p>WordFence block the activation key at that time you need to whitelist.<\/p>\n\n\n\n<p><strong>Block Reasons:<\/strong><\/p>\n\n\n\n<ul><li> When we use a security plugin, we want it to block attacks, hackers, bad requests, prevent the theft of users\u2019 accounts, all that kind of protections.<\/li><\/ul>\n\n\n\n<h4><strong>How to Whitelist your admin-ajax.php for license key activation in WordFence:<\/strong><\/h4>\n\n\n\n<p><strong>Follow these simple steps:<\/strong><\/p>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep 1:<\/mark><\/strong> In your WordPress admin area, go to <strong>Wordfence<\/strong> -&gt;<strong> Firewall<\/strong> then at the top of that page click on the button that says <strong>Manage Firewall<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"424\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-1024x424.png\" alt=\"\" class=\"wp-image-8034\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-1024x424.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-300x124.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-768x318.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-60x25.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8-100x41.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/1-8.png 1349w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep 2:<\/mark><\/strong>  Next scroll to the bottom of that screen to the<strong> Whitelist URLs<\/strong> section.<\/p>\n\n\n\n<p>Here\u2019s what you need to enter for each field:<\/p>\n\n\n\n<ul><li><strong>URL<\/strong> = \/wp-admin\/admin-ajax.php<\/li><li><strong>Middle Dropdown<\/strong> = Param Type: POST Body<\/li><li><strong>Param Name<\/strong> =  ampforwp_get_licence_activate_update <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"747\" height=\"197\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-6.png\" alt=\"\" class=\"wp-image-7972\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-6.png 747w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-6-300x79.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-6-50x13.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-6-60x16.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-6-100x26.png 100w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/figure>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep3:<\/mark><\/strong>  Once you click on Add button  WordFence allows your website to communicate properly with our licensing server. <\/p>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep 4:<\/mark><\/strong> Go to <strong>WordPress Admin Area<\/strong> -&gt; <strong>AMP option panel <\/strong>-&gt; <b>Extensions you<\/b> need to enter the license key on this field and click on Activate button now your license key properly activated.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"425\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-1024x425.png\" alt=\"\" class=\"wp-image-8036\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-1024x425.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-300x124.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-768x318.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-60x25.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4-100x41.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-4.png 1307w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you still having the issue then contact to our Support Team <a href=\"https:\/\/ampforwp.com\/support\/\">from here<\/a>.<\/p>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>WordFence block the activation key at that time you need to whitelist. Block Reasons: When we use a security plugin, we want it to block attacks, hackers, bad requests, prevent the theft of users\u2019 accounts, all that kind of protections. How to Whitelist your admin-ajax.php for license key activation in&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[1],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7924"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=7924"}],"version-history":[{"count":53,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7924\/revisions"}],"predecessor-version":[{"id":13333,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7924\/revisions\/13333"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=7924"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=7924"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=7924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}