LITA Regional Institute: Proxy Web Servers and Authentication
Atlanta, GA May 30, 2003
Proxy Web Servers and Authentication > Proxies for Filtering > Fake a proxy server to prevent access to all but authorized sites
2. Fake Proxy Server
- #1 is good, but the error message is vague and confusing.
- Run a fake proxy server on a specific port on a UNIX box which simply displays an HTML page.
- Create a HTTP-response-in-a-file (/usr/local/sorry.cat-html in this example):
HTTP/1.0 200 Ok
Content-type: text/html
<HTML>
<HEAD><TITLE>Can't go there</TITLE></HEAD>
<BODY><P>Sorry -- you can't get there from this workstation.</P></BODY>
</HTML>
- Add a line to your services file: fakeproxy 8080/tcp
- Add a line to your inetd.conf file: fakeproxy stream tcp nowait httpusr /bin/cat cat /usr/local/sorry.cat-html ...and restart your inetd server with a HUP signal.