map $http_user_agent $bad_bot {
default 0;
~*360Spider 1;
~*AdsBot-Google-Mobile 0;
~*google 1;
...
}
и в нужном локейшене:
if ($bad_bot) {
return 410;
}
Posted at Nginx Forum:
https://forum.nginx.org/read.php?21,284490,284494#msg-284494
Hi,
I would like to enable Content Security Policy header on Nginx for our
website to protect from data injection attacks and XSS. Can I add like the
below config?. If anybody hit our URL they will know the allowed domains in
the header.
Is there any other bettery way to do this?
add_header
Hello
I am writing a full-page cache module for NGINX. But I ran into some
issues, I searched online for a possible solution, but no success.
What happens is that I need to hook my module in NGX_HTTP_PRECONTENT_PHASE,
so that module can make cache related decisions.
Everything is good, so far
Everything worked after removing the proxy_protocol.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,284428,284491#msg-284491
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Здравствуйте помогите пожалуйста.
есть список плохих ботов
if ($http_user_agent ~*
(360Spider|80legs.com|Abonti|AcoonBot|Acunetix||ZyBorg|google) ) {
return 410;
}
там присутствует google - но в таком варианте банит всех ботов гугла,!
Нужно
On Sat, Jun 08, 2019 at 02:44:22PM +, Andrew Andonopoulos wrote:
Hi there,
> Thanks for the clarification, so all requests will be like this:
>
> http:///hls//
>
> can i include in the map the domain http://example.com, the folder /hls/ and
> ignore all the rest?
You can. I'm not sure