Close
Social profiles

Redirect URL In Squid Proxy Server

Redirect URL In Squid Proxy Server

This is the method how Squid deny the access to a specified Website and redirect them to a predefined url as an ERROR MESSAGE.

First Edit the Squid Configuration File :

[root@server ~]# vi /etc/squid/squid.conf

acl LocalLAN src 192.168.1.0/24
acl Blocksites dstdomain .google.lk
deny_info http://www.tecexpertz.com LocalLAN
http_reply_access deny Blocksites LocalLAN

Add the 4 lines to the squid.conf configuration file, save and exit.

[root@server ~]# /etc/init.d/squid reload

 


 

Leave a Reply

Your email address will not be published. Required fields are marked *

Close