Hi Everyone, I am doing work for a small company which has fewer than 10 people connecting to the internet via their wireless or wired router. The problem is that some staff spend all day on facebook and gaming sites and none of the day doing their jobs. I need to write a small, easy web proxy server for them to monitor and block access to certain sites. Their router is a fairly simplistic one which allows limited blocking and no reporting. I have already written most of the proxy and it does work (with many bugs at the moment). One of the problems I have is how to forward requests properly. If someone types in on their PC, www.google.com, I look at the HTTP headers and find the Host: google.com, then I connect to google.com and pass the headers on. In some cases, this does not work. For instance, I use a free email provider and to access their webmail, I go to mail.ananzi.co.za. However, if I connect from my proxy to mail.ananzi.co.za I get to their main site at www.ananzi.co.za. How do I know where to connect to, or put differently, is there any way I can tell which IP Address the user's web browser would have connected to had it connected directly? PS, I would not mind using an available open source proxy, but one of the reason's I wanted to write my own is so that I can do things with it, like write the logs to a db on my web server and then block sites remotely, generate SMS text message to cellphones when someone is spending all day on a gaming site, etc... John