I need ths behaviour When connecting to a special website from my client, I would like to receive a blank page as a result. For example if I connect to serverfault.com, I receive a blank page, but if I connect to google.com, I have the good website.
I'm currently using the following config:
Server 1: Client
Server 2: OpenVPN
Server 3: Proxy
Server 4: Website
The client connects to the website via curl using the proxy but the server itself is configured to use the VPN. So it simply does server 1 -> server 2 -> server 3 -> website.
I can't modify server 3 (a proxy provider) neither server 4 (could be whatever website). I need to configure something on server 1 or server 2.
I was thinking to add an header to my request (for example: SPECIALCONNECTION: Drop), and the server 2 check if I have this header. If it is present, it just drop the connection and return a blank page. But I don't see a way to configure OpenVPN easily to do this, so any ideas are welcome. :)