Welcome! Log In Create A New Profile

Advanced

Block extension for specified IP address

January 01, 2021 02:54AM
Hi Guys,

I'm stuck in this. I am open to your suggestions. Thank you.

I have a reverse proxy configuration as follows, I want to block exe extensions for requests from here. But it doesn't work. How can I do that ?

Example Config:

location / {

types {
application/octet-stream bin exe dll;
allow 10.1.1.2/32;
deny all;
}

proxy_pass http://10.1.1.9:4545;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}

Thank you in advance.
Subject Author Posted

Block extension for specified IP address

Dr_tux January 01, 2021 02:54AM

Re: Block extension for specified IP address

Francis Daly January 05, 2021 01:08PM

Re: Block extension for specified IP address

Dr_tux January 07, 2021 01:57AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready