Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A node tool to help you focus.
A small set of defaults come bundled with fokus. Here is the simplest usage just blocking default links.
sudo fokus
And you can also specify your own links from a file. The file need to export an array of links, like this
module.exports = [
"www.facebook.com",
"www.connoratherton.com"
]
And use the -u
option followed by the file..
sudo fokus -u /path/to/file
Use a custom file and no defaults
sudo fokus -u /path/to/file --no-defaults
To restore your /etc/hosts back to its original state run the following command. All traces of fokus will be gone.
sudo fokus --kill
You have to use sudo to modify /etc/hosts. I mainly use this myself, but if you want to use it check out the source beforehand so you understand what it does.
Note: You might have to clear your DNS cache.
sudo dscacheutil -flushcache
FAQs
A small tool to block websites using your hosts file.
We found that fokus 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.