Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
cookieyesno
Advanced tools
Readme
Easy to use GDPR-complient cookie-banner
Take a look at it in action on a real site: https://watchaccuracy.com/
// using packages
import CookieYesNo from 'cookieyesno';
// or simply include the dist/cookieyesno.min.js file in the html
const cyn = new CookieYesNo({
text: 'This website uses cookies. You can select below which cookies will be stored on your device.',
cookiePolicy: '<LINK TO YOUR COOKIE POLICY>',
categories: { // different categories of cookies
required: {
allowed: true, // preselected
description: 'These cookies are necessary for the website to function properly.',
changeable: false // user can not change this option
},
Analytics: {
allowed: false, // not preselected
description: 'These cookies are used to analyze the user\'s behavior.'
}
}
});
cyn.onChange((settings) => {
// cookie settings have changed
});
// Note: all categories are transformed to lowercase (Analytics -> analytics)
cyn.onAccept('analytics', () => {
// analytics-cookies are accepted
});
cyn.onReject('analytics', () => {
// analytics-cookies are not allowed
});
// get current cookie settings
cyn.getSettings(); // example-response { required: true, analytics: false }
cyn.reviewSettings(); // open the banner to let the user review the settings
It's pretty simple: just use CSS-rules. The following classes are available:
.cyn-banner
: main banner element.cyn-categories
: table containing the different cookie categories.cyn-btn-save
: save settings button.cyn-btn-accept-all
: accept all buttonFAQs
![Cookiebanner Screenshot](screenshot.png)
We found that cookieyesno demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).