Block Navigation Until Cookie Consent is Given

The Agencia Espa帽ola de Protecci贸n de Datos (AEPD) in Spain states that informed consent must be obtained before using non-essential cookies. It emphasizes that mere inactivity or continued browsing does not constitute valid consent. I would like to offer clients the option to block navigation until the user accepts or customizes their preferences, as this has already been requested by two of my clients in Spain.

Here are two examples where navigation is blocked, or at least the banner remains visible, until the user interacts with the cookie banner:

https://www.didomi.io/
https://www.irbbarcelona.org/en

While this may not currently be a requirement for GDPR compliance, having this option would be a great feature.