{"id":2280,"date":"2022-07-14T18:13:21","date_gmt":"2022-07-14T18:13:21","guid":{"rendered":"https:\/\/chpadblock.com\/?post_type=docs&#038;p=2280"},"modified":"2022-07-14T18:51:13","modified_gmt":"2022-07-14T18:51:13","slug":"basic-settings","status":"publish","type":"docs","link":"https:\/\/chpadblock.com\/docs\/documentation\/basic-settings\/","title":{"rendered":"Basic Settings"},"content":{"rendered":"\n<p>In this section, we\u2019ll walk you through how to set up CHP Adblock and configure the most important settings on your website \u2013\u00a0the ones that are truly necessary for detecting the AdBlock software and extensions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Enable Plugin:<\/h4>\n\n\n\n<p>You can completely enable or disable the plugin for the front end by clicking on the <em>Enable Plugin<\/em> checkbox.<\/p>\n\n\n\n<p>This setting is usually required when you are testing or debugging this plugin. This option is also useful for developers.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">On Page Load:<\/h4>\n\n\n\n<p>Determine whether you want to check the AdBlock extensions or software after the page Is fully loaded or not. <\/p>\n\n\n\n<p>If you <em><strong>checked<\/strong><\/em>, The plugin starts checking for Adblock software or extensions after the page is completely loaded but if you <strong><em>unchecked<\/em><\/strong> it, the Plugin starts checking after URL is loaded.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Title and Content:<\/h4>\n\n\n\n<p>Change the AdBlock extension messages. This message appears on the front end (popup).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Random Class:<\/h4>\n\n\n\n<p>Random class is a method to change the functions, variables, and classes from human-readable to decoded form. <\/p>\n\n\n\n<p>Whenever We used human-readable form, AdBlock extension or software inject CSS to hide the modal.<\/p>\n\n\n\n<p>Since Our Plugin classes are whitelisted on the <a href=\"https:\/\/easylist.to\/easylist\/easylist.txt\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">easylist.txt<\/a> file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"511\" src=\"https:\/\/chpadblock.com\/wp-content\/uploads\/2022\/07\/easylist.png\" alt=\"\" class=\"wp-image-2284\" srcset=\"https:\/\/chpadblock.com\/wp-content\/uploads\/2022\/07\/easylist.png 1920w, https:\/\/chpadblock.com\/wp-content\/uploads\/2022\/07\/easylist-768x204.png 768w, https:\/\/chpadblock.com\/wp-content\/uploads\/2022\/07\/easylist-1536x409.png 1536w, https:\/\/chpadblock.com\/wp-content\/uploads\/2022\/07\/easylist-600x160.png 600w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<p>Whenever These classes appear, AdBlock extensions inject the CSS as below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.chp_branding,\r\n&#91;class^=\"chp_ads_block\"],\r\n&#91;id^=\"chp_ads_block\"],\r\ndiv.fadeInDown&#91;id$=\"____equal\"]&#91;class$=\"____equal\"]{\n    display:none;\n}<\/code><\/pre>\n\n\n\n<p>After this, Our plugin detects the AdBlock but is unable to show the popup modal.<\/p>\n\n\n\n<p>To fix this problem, We have implemented <strong><span style=\"text-decoration: underline;\"><em>Random Class<\/em><\/span><\/strong> System on our plugin. With this method, We will replace all the variables, classes, and functions with randomly generated strings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RCLASS__modal__RCLASS\n\nto\n\ndGYxS1ZNVFBNNmlMVXpyTThzc1UxeUx1aVk3YVBUV2ZvbDJnWUpzTFkrST0dcwcq<\/code><\/pre>\n\n\n\n<p>Our decoder will convert the string as above which makes Adblock extension or software difficult to target our Adblock modal to hide.<\/p>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">We recommend you enable the Random class generator system to work properly.<\/span><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Redirect URL on AdBlock Detected:<\/h2>\n\n\n\n<p>If you want to redirect the user to a certain page or URL. if the AdBlock extension or software is detected then this option is useful for you.<\/p>\n\n\n\n<p>This will redirect the user to provided URL, if AdBlock extension or software is detected.<\/p>\n\n\n\n<p>This option is useful if you have a custom page or custom method to instruct the user to disable the Adblock extension or to redirect the user to the subscription page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this section, we\u2019ll walk you through how to set up CHP Adblock and configure the most important settings on your website \u2013\u00a0the ones that are truly necessary for detecting the AdBlock software and extensions. Enable Plugin: You can completely enable or disable the plugin for the front end by clicking on the Enable Plugin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"doc_category":[28],"doc_tag":[],"knowledge_base":[26],"class_list":["post-2280","docs","type-docs","status-publish","hentry","doc_category-configuration","knowledge_base-documentation"],"acf":[],"_links":{"self":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs\/2280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/comments?post=2280"}],"version-history":[{"count":8,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs\/2280\/revisions"}],"predecessor-version":[{"id":2292,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/docs\/2280\/revisions\/2292"}],"wp:attachment":[{"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/media?parent=2280"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/doc_category?post=2280"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/doc_tag?post=2280"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/chpadblock.com\/api\/wp\/v2\/knowledge_base?post=2280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}