Array ( [0] => GDPR Cookie Consent [1] => CCPA [2] => Getting Started [3] => Changelog [4] => GDPR [5] => Add and Categorise Cookies [8] => Auto-block cookies with Script Blocker [13] => Create Privacy Policy Page [15] => Customize Cookie Notice [18] => Customize Settings Pop up [19] => Change Toggle button color [21] => Display Cookie List [22] => FAQ [23] => Getting Started [24] => Multilingual Support [25] => Overview [26] => Import Export Suite for WooCommerce [28] => Order / Coupon / Subscription Export Import Plugin for WooCommerce [29] => PayPal Express Checkout Payment Gateway for WooCommerce [30] => Changelog [31] => Getting Started [32] => Issue Refund [34] => Video Tutorial [35] => Print Invoice, Packing Slip, Delivery Note & Label for WooCommerce [36] => Address Label [39] => Changelog [41] => Credit Note [43] => Delivery Note [45] => Dispatch Label [47] => FAQ [48] => Invoice [49] => Adding meta data [50] => Customizations [51] => Email PDF Invoice [52] => FAQ [53] => Getting Started [54] => Invoice Number [55] => Multilingual Support [56] => Overview [57] => Packing Slip [58] => Customizations [59] => Getting Started [60] => Pick List [62] => Proforma Invoice [65] => Shipping Label [68] => Product Import Export Plugin for WooCommerce [69] => Smart Coupons for WooCommerce [70] => Abandoned Cart Discount [71] => Advanced Coupon Options [72] => Bulk Generate [73] => Changelog [76] => Getting Started [78] => Import Coupon [80] => Sales Countdown Timer [81] => SignUp Coupon [82] => Store Credit [84] => Volume/Quantity based coupon [85] => Stripe Payment Gateway for WooCommerce [86] => Alipay [87] => Apple Pay [88] => Changelog [89] => Compatibility with Subscription [90] => Getting Started [93] => SCA Ready [94] => Stripe Checkout [95] => Stripe Overview [96] => Stripe via Credit Card [97] => Troubleshoot [98] => Video Tutorial [99] => Subscriptions for WooCommerce [100] => Changelog [101] => Email Notifications [102] => FAQ [103] => Getting Started [104] => Manually Add or Modify Subscriptions [105] => Subscriptions Payment Gateway Guide [106] => URL Coupons for WooCommerce [107] => Changelog [108] => FAQ [109] => Getting Started [110] => Import URL Coupons [111] => QR Code Coupon [112] => WordPress Users & WooCommerce Customers Import Export )

Documentation/How to block users without consent from accessing site

How to block users without consent from accessing site

GDPR law simply emphasizes on personal security and data protection. It ensures that the users accessing a website provide their consent before proceeding further with the use of the site. Eventually, it is beneficial both for the users to be knowing about the various information being collected from them as well as the site owners can explicitly inform users about what type of data is collected.

The cookie banner can be designed and created to suit various needs of the site owners depending upon the site theme and its associated requirements. GDPR cookie consent plugin allows you to obtain a customized cookie banner for your site. It consists of various functionalities to fulfill the varied needs of the site owners. The site owner can decide on how the cookie banner must appear on their website, its position, design, etc.

Achieving the consent from the user is the key to GDPR law. The user can either accept, reject or partially accept the cookie. With the GDPR cookie consent plugin, you can design your cookie bar as a banner, pop up or as a widget. On choosing the layout as pop up, you will get additional option to set the pop as an overlay on the site by blocking the user from further using the site if consent is not provided. This methodology can actually make an explicit awareness to the visitor that the site is using cookies and it is necessary to mark the consent to proceed further.

Let us see how this can be achieved using the GDPR cookie consent plugin:

  1. Install and activate the GDPR Cookie consent plugin.
  2. Navigate to the Cookie Law Settings page. The different tabs of the Cookie Law Settings page allow you to customize the different parts of the cookie notification bar. The General tab is further divided into three sections: Cookie Bar, Show Again Tab and Other.


  3. The cookie bar tab consists of various options to configure the behavior of the cookie. However, to obtain an overlay to block the user without consent from accessing the site, navigate to the Cookie bar as field and choose popup from the drop-down.

    Cookie bar as popup with overlay

    Cookie bar as a popup with an overlay

  4. If the popup is chosen, then the cookie notification will be shown as a popup instead of a notification bar. You can set an overlay along with the popup, which will block the user from browsing the website unless consent is obtained. 

    cookie-bar-as-popup with overlay

  5. Apart from this, several other settings are also provided in the cookie bar page as shown below:
    • The cookie bar is currently field allows you to enable or disable the cookie bar on your website. The cookie bar will not be shown on the front-end of the website if this option is turned off, and the cookies will be installed without any consent from the user.
    • Show only for EU Countries enables you to show the cookie notice only to the visitors from the European countries.
    • Cookie Bar can be set as a Banner, Pop up or as a widget.
      • With the banner option, you get to choose if you want to place the banner in the header or footer. Here, I have placed the banner in the footer.
      • As for the widget, you can position it to the left or right of the website.
    • On load option allows you to either animate the notification or make it sticky while loading the website.
    • On hide option allows you to either animate the way the notification disappears or to disappear without any visual effect.
    • Enable the Auto-hide cookie bar after delay option and configure time if you want to assume the user acceptance if he/she lingers in the web page for the specified amount of time.
    • Enable the Auto-hide cookie bar (Accept on scroll) option if you want to assume the user acceptance if he/she scrolls the web page.

      GDPR Cookie Consent-Auto hide cookie banner on scroll

      GDPR Cookie Consent-Auto hide cookie on scroll

  • Was this article helpful ?
  • YesNo