I'm building a proxy, and I want it to return a 403 forbidden
in case the host in the request is found in a "black host list".
I couldn't realize how I can create a "HttpWebResponse" without sending the request and change the Status Code to 403.
Should I create a request with the given Url
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
and do some manipulation on this request, or can I do it other way? Also, which manipulation can I do to get a 403 response?
Thanks :)