A tool for scanning websites to check cookie GDPR-compliance and generate detailed reports.
The website should use HDS Cookie Banner
- Scans multiple URLs with different cookie consent configurations
- Detects cookies, localStorage, sessionStorage, indexedDB, and cacheStorage items
- Checks compliance against HDS cookie banner site settings
- Generates interactive HTML reports with charts and sortable tables
make install
Configure scanning parameters in config/config.js. Key settings include:
mainUrl
: Main website URL to scanapiUrl
: API endpoint for cookie banner settingssettingsDomainSubstitution
: Domain substitution for testingurls
: Array of URL configurations to scan
Example URL configuration:
{
nameBase: 'Frontpage',
url: 'https://www.hel.fi/fi/',
actions: [],
variants: [
'none',
'required',
'all'
],
headless: true,
pause: false
}
- Start the service:
make up
- Start the scanner:
make run
- View reports by opening https://helfi-gdpr-scanner.docker.so/ in your browser
The generated reports include:
- Compliance overview with donut chart
- Detailed inventory of scanned URLs and frames
- List of found items (cookies, storage, etc.) with compliance status
- Domains visited by browser when opening inventory pages and their frames
- Site settings and rules used for compliance checking
- Sortable tables for easy data analysis
/config
- Configuration files/reports
- Generated HTML reports and assets/json
- Report data in JSON format
/src
- Source code/collectors
- Data collection modules/compliance
- Compliance checking logic/reporter
- Report generation/server
- Local report server/utils
- Utility functions
The report interface uses:
- Chart.js for data visualization
- Mustache.js for templating
- CSS Grid and Flexbox for layout
- Responsive design with dark mode support
Key UI components referenced from:
This tool is designed for web developers and compliance teams to audit cookie and storage usage across websites. For more detailed technical documentation, please check the source code comments.