On 25th May 2018, the GDPR (General Data Protection Regulation) enacted by the EU has come into effect.


A lot of webmasters spent (and will spend) a lot of time in order to make websites compliant: a lot of checks need to be accomplished, and a simple tool that performs some of there can be really useful.

GDPR CLI is a easy-to-use command line tool, developed and mantained by Mirko Schubert, for checking any given website for GDPR compliance.

The tool scrapes a website for HTML, CSS and JavaScript files and tries to detect code which is possibly sending personal data to other services, such as Google, Facebook, Instagram, WordPress and many more.

The tool is still in early alpha and still need some improvement, however the developer update it frequently.


Installation

You need to have node.js and npm already installed.
You can install GDPR CLI with the following command:

npm install -g gdpr-cli

Usage

The basic usage for this command line tool is:

gdpr scan https://your-website.com

Commands

Command Meaning
scan, s Scan Command - scans and analyses a given website
help Help

Options

There are already some Options available to specify your needs.

Global Options
Option Meaning
-v, --verbose Verbose Mode - outputs everything there is
-m, --mute Muted Mode - outputs only the results of the analysis
-V, --version Version - shows the version of GDPR CLI
-h, --help Help - the basic global help
Options for the scan Command
Option Meaning
-f, --fonts Shows only the Fonts results
-s, --ssl Shows only the SSL Certificate
-p, --prefetching Shows only the DNS Prefetching results
-a, --analytics Shows only the Analytics results
Combination

You can combine those options freely. For example:

gdpr scan -vfa yourwebsite.com

In this case GDPR CLI will start in Verbose Mode and only scan for Fonts and Analytics tools.


References and further readings: