Thursday, January 28, 2016

Configure the squid proxy as Web Filter






Block specific web site:
For example, we can see how to block specific web sites like this facebook ,yahoo and orkut.

Step1:Create the file and add the site names

#vim /etc/squid/badsite.conf
###block site

Step2:Open squid configuration file and create new acl
#vim /etc/squid/squid.conf

acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

##Add acl Badsites##
acl badsits dstdomain "/etc/squid/badsites.conf"

# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

##Deny access to badsites##
http_access deny badsites

Step3: Restart the service
#service squid restart
     you try to access the facebook ,google and orkut in your browser. you could see blocked page as below.





To block a particular web sites URL and Domain:
###Block URL ###
Step1:Open the squid.conf and add the URL name
#vim /etc/squid/squid.conf
###Block URL###
acl bad_url dstdomain www.facebook.com
http_access deny bad_url

Step2: Restart the service and try to access the URL
#service squid restart.
Open -Web browser – Enter the URL: http//www.facebook.com.
You could see the block messages.

###Block Domain Names####
Step1:Open the squid configuration file and add the domain names
#vim /etc/squid/squid.conf
###Block particular Domain###
acl bad-domain dstdomain .facebook .yahoo.com .orkut.com
http_access deny bad-domain

Step2: Restart the service and try to access the domain names
#service squid restart
Open -Web Browser -Enter Doamin Name: facebook.com , orkut.com, yahoo.com



Facebook Twitter Google+ WhatsApp StumbleUpon Pinterest Addthis

MAXIT INTERNET

BLOGGER

CD DVD RW

DELL

DOWNLOAD

FTP Server Linux

HACK

HARD DRIVE

HOW TO WORKIN

HARDWAER

INTERNET

INTERNET CAFE

LAPTOP

LENOVO

LINUX

Additional configuration for Samba Server (Part 2)  

BSNL/Airtel/Idea using Huawei E156G 3g Wireless USB Linux 5   

Basic File Extensions    CHANGING AN ACCOUNT EXPIRATION DATE   

Configure Linux as a Router   

Configure SAMBA Server (Part-1)   

Configure VNC server   

Configure Yum Server (Part-1)   

Configure yum server for Client machine (Part 3)   

Configuring Samba as a Standalone Server (Part 3)  

Connecting ftp Server with Anonymous User Part 5  

Create ftp account with Shared directory Part 3  

DHCP Server Configuration Part 2  

DHCP Server Configuration Part-1  

DHCP Server Configuration Part-3  

Enabling FTP Services in Yum Server (Part 5)  

FTP Server Configuration Part 1  

FTP Server How to Change In Primary DNS Server Part 2  

HTTP Client side configuration (Part 4)  

How to Vsftpd conf files Parameter Part 6   

LINUX FILE SYSTEM STRUCTURE  

Linux User Administrtion  

Linux as a Router configuration for Client Machine   

Linux client machine FileZilla FTP Client Part 4  

Local Yum Server (Part 2)  

Modifying Existing User Information  

Primary DNS Server Configuration Part-1  

Primary DNS Server Configuration Part-2    

Primary DNS Server Configuration Part-3  

Remove Linux From Your Pc Safely and restoring your MBR  

Sharing & Accessing Samba Share (Part 4)   

Speeding up your internet connection under Linux and Windows   

THE ROOT FILE SYSTEM   

VNC Server Configuration

LINUX LAB

Linux as a Router

MOTHERBOARD

Mobile

NETWORKING

REDHAT 5

REGISTRY EDTOR

RESET BIOS PASSWORD

SAMBA Server Linux

SERVER

SERVER CONFIG

SOFTWAER

VNC server Linux

Window 10

Window XP

Follow by Email

MAX-IT INTERNET

MAX-IT INTERNET
TIPS AND TRICKS