VSF icon indicating copy to clipboard operation
VSF copied to clipboard

feature request: whitelist ip address

Open iammeken opened this issue 3 years ago • 2 comments

Hi,

I think adding whitelisted ip address is good for VSF, especially for front-backend setup and dos.vcl.

Please also check: https://puszcza.gnu.org.ua/software/vmod-remoteip/

iammeken avatar Nov 17 '21 21:11 iammeken

For example:

acl admin { "127.0.0.1"; "1.2.3.4"; }

if (std.ip(req.http.X-VSF-Actual-IP, "0.0.0.0") !~ admin && req.url ~

iammeken avatar Nov 18 '21 10:11 iammeken

Hi. I will take a look but feel free to open PRs if you want and have the time.

fgsch avatar Nov 18 '21 10:11 fgsch