Here the step blocking porn site using squid
I assumed that the squid proxy run well,
the step :
Open the squid.conf
add the script :
and add the script :
http_access deny porn on the top of http_access allow manager localhost
create the file and name it wordblock.txt in /etc/squid folder
after that pres Ctrl+X than save
change the owner of that file
#chown proxy:proxy /etc/squid/wordblock.txt
make permittion to allow to execute that file
#chmod +x /etc/squid/wordblock.txt
after that restrat your squid