0

Hi i was thinking to build simple proxy server for my flat so that our flatmates are not spending hours and hours downloading stuff, streaming on youtube and eating all the bandwidth. How am i going to build a simple proxy server so that i can restrict other flatmates going on some particular sites. I was thinking to use some kind configurable file and list the name of the site that are going to be restricted. the question is, where do i start form ? can anyone help me to generate an algorithm to build a simple server ?

Thanks

Sumurai8
  • 20,333
  • 11
  • 66
  • 100
skidder
  • 13
  • 3

1 Answers1

0

You would probably be better off using OpenDNS and having SQUID Proxy Server configured on the system from which you are sharing internet to other systems, rather than implementing your own solution as it is a very complex task to implement a proxy server which provides a decent level of security.

KMeda
  • 463
  • 4
  • 14
  • that's the other reason i want to design it for, to get to know what kind of security issue will i come across and how to manage them and also, i think it will be more fun to do something by myself rather than buying one of the self. – skidder Aug 18 '11 at 13:13
  • You would need to maintain a blacklist and check if the request is in any of them. If not you can forward the request and send it back. The problem is, people can use other proxy servers to bypass your proxy. You would also need it to be very fast as all traffic goes through that. BTW SQUID and OpenDNS are free – KMeda Aug 19 '11 at 08:29
  • HTTP proxies won't do anything against non-HTTP protocols (FTP, Torrent, etc.). And the moment you allow CONNECT method on your proxy (so HTTPS could work through it), your proxy becomes essentially useless for restricting access. – n0rd Jun 26 '15 at 17:44