Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Use allow and block lists for libraries, differentiated by anonymous and authenticated users.

Features

  • disable CSS and JS libraries differentiated by anonymous and authenticated users
  • allow/deny complete modules or only some libraries of modules
  • disable external libraries of all modules (experimental)
  • disable CDN usage of webform module

Post-Installation

By default a allow list is used for anonymous visitors and a deny list for authenticated users. The active theme and it's parent themes are also allowed by default.

To get the old behavior, set the list mode for anonymous visitors from "allow" to "deny".

Allow and deny lists aren't active at the same time. Depending on the list mode, one or the other is used. But both lists are stored independently so you can switch between modes with preconfigured lists.

Allow lists example

system
views/views.module
views/views.ajax/js

Deny lists example

webform
contact
system/base
views/views.ajax/js

Side effects

This module adds a cache context to library_info:theme_name:<anonymous|authenticated> in the cache_discovery table. Without this module, two cached keys are expected:

  • library_info:claro (admin theme)
  • library_info:theme_name (theme)

In theory, the admin theme can’t be loaded as anonymous user, so three cached keys are expected:

  • library_info:claro:authenticated (admin theme)
  • library_info:theme_name:anonymous (theme)
  • library_info:theme_name:authenticated (theme)

Similar projects

  • Library manager (not tested, yet) - can be used to overwrite libraries, but it doesn't differentiate between authenticated and anonymous users. From skimming the source code it also doesn't look like disabling libraries is possible.

Supporting this Module

TODO

Community Documentation

See README.md and CHANGELOG.md in the source code for more details and the technical background.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
0.1.4 Stable Jun 30, 2024
0.1.3 Stable Jun 26, 2024
0.1.2 Stable May 4, 2024
0.1.1 Stable Apr 26, 2024
0.1.0 Stable Apr 24, 2024
0.x-dev Dev Apr 24, 2024