I am trying to write a proxy server to register and generate traffic from sites hosted on the IIS farm. Hosting guidelines say:
Add or configure your proxy server to allow web server requests for Internet resources. Make sure you request logs from web servers. Β·
Allow the web server to proxy requests to the Internet, not the internal network. So, if the addressee of the request is the Internet, it should be allowed to go through the proxy. But if the application is trying to request a resource or server on the internal network, it should be prevented.
I use FiddlerCore (the library that runs Fiddler), which allows me to check requests before sending them and again after returning the response headers (at which point I have the host IP address).
What can I do to determine if a query is running locally or on the Internet? I am currently blacklisted for known internal IPs, but this seems wrong.
source share