G
G
Gennick's Macleo2019-06-11 15:58:09
Nginx
Gennick's Macleo, 2019-06-11 15:58:09

How to disable outgoing requests in Nginx?

There are outgoing requests for external services from the site, you need to disable them, how to do this at the server level?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton B, 2019-06-11
@bigton

External request:
1. The request goes to NGINX
2. NGINX proxies the request, for example, to PHP
3. PHP returns a response
to NGINX 4. NGINX returns a response to the person who made the request
Outgoing request (for example, file_get_contents(' site.ru ')):
1 PHP makes an outgoing request and receives a response to it
Thus, NGINX does not participate in outgoing requests.
For example, in the case of PHP, for the file_get_contents function in configs, you can disable the processing of external resources.
You can disable the curl module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question