Varnish as Web Application Firewall
by Danila Vershinin, , revisited on
GetPageSpeed keeps NGINX and Varnish servers fast and secure: performance modules and builds, plus security fixes within days, all through routine
Free to install; commercial production use requires a subscription.
dnf, yum or apt upgrades. It maintains the largest RPM repository of NGINX module packages and Varnish VMODs, with APT packages for Debian and Ubuntu.
Free to install; commercial production use requires a subscription.
There is Varnish Security Firewall project, but you can do something really simple in your VCL to protect your application:
Send a 403 to requests that contain the following characters in the url: ",',<,>,(, and ). Place in vcl_recv:
if (req.url ~ "[\x27<>()\x22]") {
return (synth(403, "Forbidden"));
}