Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
Write an article for LinuxForums Today! Win Great Prizes!
I wrote these script to add or remove websites in SquidGuard. Just copy paste chmod u x .
[root@gateway ~]# vi allowweb.sh Paste the below mentioned lines.
#!/bin/bash cd /usr/local/squidGuard/db/whitelist/ echo -n "Plz enter the site name which you want to allow " read -e web1 echo $web1 >> domains echo "Enter another web name or press enter " read -e web2 echo $web2 >> domains echo "Enter another web name or press enter " read -e web3 echo $web3 >> domains echo Plz wait /usr/local/bin/squidGuard -C domains service squid restart echo Web $web1, $web2 $web3 added into whitelist