Tech How to set up a proxy server with XAMPP on Windows.


Set up Apache

  1. Open your apache config file C:\xampp\apache\conf\httpd.conf. Make sure the following lines are uncommented:

      Include "conf/extra/httpd-proxy.conf"
      LoadModule proxy_module modules/mod_proxy.so
      LoadModule proxy_connect_module modules/mod_proxy_connect.so
      LoadModule proxy_http_module modules/mod_proxy_http.so

  2. Open your proxy config file C:\xampp\apache\conf\extra\httpd-proxy.conf. Edit it to match the following:

      <IfModule proxy_module>
      <IfModule proxy_http_module> 
        ProxyRequests On
        ProxyVia On
        <Proxy *>
          Order deny,allow
          Allow from 127.0.0.1
        </Proxy>
        ProxyBlock some-website-you-want-to-block.com another-website-you-want-to-block.com
      </IfModule>
      </IfModule>
  3. Restart Apache.

Update LAN settings.

  1. Open Internet Explorer and go to Tools » Internet Options.

  2. Switch to the Connections tab and open Local Area Network (LAN) settings.

  3. Under Proxy Server, check the box that says "Use a proxy server for your LAN" and specify the address and the port of your apache web server (for example, 127.0.0.1 port 80).

That's it! Now, when you go to some-website-you-want-to-block.com, you will get a website-blocked message.