This project is not covered by Drupal’s security advisory policy.
Webform Content Gate puts a content entity behind a Webform. A visitor who opens a gated page is sent to the form instead. Once they submit it, that one page is unlocked for the rest of their browser session. Nothing else is unlocked, and nothing survives the session.
How it works
Webform Content Gate is a Rabbit Hole behavior plugin, so it works on any entity type Rabbit Hole is enabled for, and it is configured wherever Rabbit Hole settings already live: per bundle, or per entity when you allow overrides.
- A visitor requests a gated entity.
- The gate redirects them to the configured Webform, carrying Webform's own
source_entity_typeandsource_entity_idparameters plus adestinationback to the entity. - They submit the form. The module checks that the named entity really is gated by the Webform that was just submitted, then records the grant in the session.
- The
destinationreturns them to the entity, which now renders.
Features
- Works with any content entity type, not just nodes.
- One Webform can gate many entities; each submission unlocks only the entity the visitor asked for.
- Form location setting sends blocked visitors to a landing page that embeds the form, rather than to a bare form URL.
- Private files attached to a gated entity are denied until the session holds a grant, via
hook_file_download(). - Each submission records which entity it unlocked, so lead reports name the asset rather than the form.
- Blocked redirects are cacheable, so a crawler sweep over gated URLs costs one render rather than one per request.
Recommended modules
None of these are required, but a gated form is a public form and will attract bots.
- Antibot
- Honeypot
- CAPTCHA
- Metatag to mark content
noindex, so search engines stop listing pages nobody can open.
Similar modules
- Protected Pages gates paths behind a shared password.
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Access control, Content display, Content editing experience
- Ecosystem: Webform, Rabbit Hole
- Created by pcambra on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Development version: 1.0.x-dev updated 22 Sep 2026 at 11:48 UTC

