Stop users accessing website via IP address

Paul A. Procacci pprocacci at
Sun Jul 28 07:57:39 CEST 2013

> I guess I am confused as to why you need the rewrite.
> sub vcl_recv {
>       if(req.http.Host ~ "") { error 750; }
> }

Not to step on any toes.....

The above can have unwanted side effects.  And not konwing
exactly how Puneet's machine is setup one should make it
explicit that the above will match a lot more then you
possibly intend.[0-9]

This being just an example.  The first octet having the same
natural problem though that's less likely to happen.
You can fix the above problem be either anchor'ing your
match or using the appropriate operator '=='.



This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you.

More information about the varnish-misc mailing list