This repository contains the code of a backend trying to identify the sites respecting the GDPR or not. An instance of this server is available at https://gdpr-checker.herokuapp.com/
An interface demo is available at https://baudev.github.io/gdpr-checker-frontend/
- Install dependencies
npm install
-
Edit the
.env
file. Do not forget to specify database credentials. -
Run using
npm start:dev
ornpm start:prod
- /report
Method: POST
Param: domain (string). E.ghttps://www.google.com
. The URL of the website to analyze.
Description: Returns the related identifier of the requested domain.
Returns:
{
"domain": "www.google.com",
"uuid": "9960b336-3cbd-4261-ba61-fb1f4d502f19",
"updatedAt": "2021-01-01T00:00:00.000Z"
}
- /report/:uuid
Method: GET
Param:uuid
(string). The uuid retrieved by the previous route.
Description: Returns anEventStream
containing GDPR related information concerning the website.
Returns:
{
"percentage":100,
"report":{
"domain":"google.com",
"uuid":"c69d4eae-6e5b-45d6-8a79-6f5ac3cbfb73",
"createdAt":"2021-01-15T21:48:53.260Z",
"updatedAt":"2021-01-16T11:22:27.085Z",
"urls":[
{
"path":"google.com",
"isHttps":true,
"cookies":[
{
"name":"NID",
"domain":"google.com",
"provider":"Google",
"type":"Marketing",
"description":"This cookies is used to collect website statistics and track conversion rates and Google ad personalisation",
"retentionPeriod":"1 year",
"termsLink":"https://privacy.google.com/take-control.html",
"IP":"74.125.193.139",
"countryCodeIso":"US",
"hasAdequateLevelOfProtection":false,
"country":"United States"
}
]
}
]
}
}
- Create a release (with master branch, database migrations...)
- Clean the code
- Write tests
- Implement more complex logic to detect non GDPR compliant websites
- Scan several urls for each domain
Icons made by Smashicons from www.flaticon.com
MIT License
Copyright (c) 2021 Baudev.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.