People can use Nginx to proxy_pass to my domain and on the browser, the contents are mines, but on address bar it's their domains.
How to detect when the requests are thru' proxy_pass and deny those?
For example, when I purposely proxy_pass to google.com, I get 404 error.
server {
listen 80;
server_name test.com;
location / {
proxy_pass https://google.com;
}
}
Seems that it's not possible to prevent this, for example those people make the proxy behave just like a normal browser. However, how to prevent if they just use a simple Nginx proxy_pass?