
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
I can live with or without WWW... – Bono from U2
This Rack middleware is ridiculously simple.
It just add or remove www
from your host name depending on what you want.
This is good for SEO to gather everything under one host name.
Normally, this is done in your vhost settings, which means that this middleware is for when you don't have access to vhosts settings like on Heroku for example.
Install it:
sudo gem install with-or-without-www
Require it in your Rackup file:
require 'with_or_without_www'
Use it:
use WithOrWithoutWWW
And then it adds www
if somebody tries to reach the website without it.
Whereas:
use WithOrWithoutWWW, false
Will do the opposite.
It will remove the www
from your host name.
A third argument can be passed and is an array with domain names to exclude (on which the middleware will have no effect).
The default value is ['localhost']
.
I almost feel guilty to make a Gem for that.
Thx for reading, Mig
FAQs
Unknown package
We found that with-or-without-www 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.