Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
fastify-floc-off
Advanced tools
Fastify plugin to opt out of Google's FLoC advertising-surveillance network
Fastify plugin to opt-out of Google's FLoC advertising-surveillance network
The fastify-floc-off
plugin sets the following response header and values to opt-out of Google's FLoC advertising-surveillance network:
Permissions-Policy: interest-cohort=()
You can read more about the issues surrounding Google's FLoC on EFF and Plausible Analytics.
Helmet (and in turn fastify-helmet) does not currently support Permissions-Policy
response header setting yet, so this plugin was created out of a need for an easy way to disable/opt-out of Google's FLoC network for systems at Yeovil District Hospital NHS Foundation Trust. This ensures both patients and staff accessing web applications at the hospital are not subject to Google's unsolicited tracking.
Install using npm
:
npm install fastify-floc-off
Or yarn
:
yarn add fastify-floc-off
fastify-floc-off's test scripts use npm commands.
const Fastify = require("fastify");
const flocOff = require("fastify-floc-off");
const server = Fastify();
server.register(flocOff);
server.get("/", (req, res) => {
res.send("ok");
});
server.listen(3000);
Please see CONTRIBUTING.md for more details regarding contributing to this project.
fastify-floc-off
is licensed under the MIT license.
1.0.1 (2021-05-06)
FAQs
Fastify plugin to opt out of Google's Topics advertising-surveillance API
The npm package fastify-floc-off receives a total of 21 weekly downloads. As such, fastify-floc-off popularity was classified as not popular.
We found that fastify-floc-off demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.