• Resolved Oliver Kandler

    (@smartpersonalfinance)


    I installed the add-on 1.2.1, added the license key and see the additional tabs. However I can’t seem to block scripts. The “Add …” button doe snot appear on the tab, only the tiggle to enable and disable the entire blocking.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nikel

    (@nikelschubert)

    Hi,

    I am not sure, what you mean. Have you followed this documentation?
    https://beautiful-cookie-banner.com/documentation/cookie-consent-premium-add-on-documentation/auto-block-scripts-and-cookies-configure-blocking-rules/

    You have to first enable the blocking and then add the services to block.

    Regards

    Thread Starter Oliver Kandler

    (@smartpersonalfinance)

    Thanks Nikel,
    for answering. I followed the above instructions. However after enabling the blocking I see no list or button “Add Rule”. See screenshot below https://photos.app.goo.gl/gnppYaKhVSEfzNPW8

    Thread Starter Oliver Kandler

    (@smartpersonalfinance)

    I just added a view of the network traffic from the Chrome developer tools and it seems the iFrame document can’t be loaded (404)

    Regards
    Oliver

    Thread Starter Oliver Kandler

    (@smartpersonalfinance)

    Hi Nikel,
    I found the culprit. My wordpress runs on a NON default port (not 443) and that trips some security checks. Here is how I fixed it locally.

    $url_host_name = parse_url($plugin_url, PHP_URL_HOST);
    $request_host_name = $_SERVER['HTTP_HOST'];
    // [ need to cater for <code>host:port</code> since some "buggy" SAPI(s) have been known to return the port too, see https://goo.gl/bFrbCO
    $strpos = strpos($request_host_name, ':');
    if($strpos !== false){
        $url_host_name .= ":" . parse_url($plugin_url, PHP_URL_PORT);
    }
    if ($url_host_name !== $request_host_name) {
        $plugin_url .= "_NOT_THE_SAME_HOST_" . $plugin_url . "_NOT_THE_SAME_HOST_";
    }

    in plugins/beautiful-and-responsive-cookie-consent-addon/admin/app/index.php

    Plugin Author Nikel

    (@nikelschubert)

    Hi,

    thanks a lot for sharing. Will implement a fix for the next version.

    Regards

    Plugin Author Nikel

    (@nikelschubert)

    Hi @smartpersonalfinance,

    the newest version (1.2.2) should fix the error.
    Thanks a lot for the report and pointing out the cause.

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘add-on does not allow blocking scripts’ is closed to new replies.