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
acl Blocksites dstdomain
deny_info 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 *