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
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>
Tools » Internet Options.
Connections tab and open Local Area Network (LAN) settings.
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.