Vote Anonymous
The Vote Anonymous module allows anonymous users to cast votes on content without logging in, using cookies to track votes. This enables quick and easy engagement on content like blog posts, with options for users to vote on individual items or only once across a content type.
The Vote Anonymous module enables anonymous users to vote on nodes using cookie-based tracking, with no login required.
Use Case
Ideal for blog posts, community polls, or any content where you want quick anonymous engagement without a complex rating UI:
- No third-party dependencies - installs and works out of the box
- Anonymous-first - cookie-based voting without requiring users to log in
- Easy to implement on both node listing and node detail pages
- Configurable at global level or per individual node
How It Works
Voting is controlled by browser cookies. If a cookie already exists for a visitor, the module displays a configurable message such as "You have already submitted!" and optionally disables the voting link.
- Global voting — uncheck "Single Node Voting". A user cannot vote on any node once they have voted on any single node of the selected content type.
- Per-node voting — check "Single Node Voting". A user can vote independently on each node.
Installation
Vote Anonymous is compatible with Drupal 10,11 and 12.
- Install using Composer:
composer require drupal/vote_anon - Enable the module at Admin → Extend
Configuration
Configuration of Vote Anonymous module.
- Go to Admin → Configuration → System → Vote Configuration Form.
- Fill in the message displayed after voting
- Enter a name for the voting cookie
- Select the content type
- Click "Save Configuration".
- Go to node page of selected content type, there we will see a link "Vote for". When you click on that link, it will say "Thank you for your vote!".
- Admin can also access vote count page at /vote-count.