LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2012, 11:21 AM   #1
alex_matt
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Restrict acces to yahoo.com and all subdomains in elinks using squid


Hi I am new in linux and i don't know how to do this. If anybody can help me. Thanks
 
Old 12-18-2012, 11:45 AM   #2
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
Do you mean blocking yahoo.com to the client PCs?
In squid proxy server add the entry in /etc/squid/squid.conf file as below
Code:
acl blocked_sites dstdomain "/etc/squid/.blocked_sites"
http_access deny blocked_sites
Now add the sites whichever you need in .blocked_sites file, the acl name, file path and file name can be anything as you wish. But make sure to change the entries in /etc/squid/squid.conf file according to your changes.
Code:
vi /etc/squid/.blocked_sites
.yahoo.com
.othersite.com
.someothersites.come
save the file and reload the squid service
Code:
service squid reload
It blocks not only elinks but also block other CLI & GUI browsers.

Last edited by mandyapenguin; 12-18-2012 at 11:53 AM.
 
Old 12-18-2012, 05:12 PM   #3
alex_matt
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Only in elinks

And if i want to block them only in elinks what i need to do.
 
Old 12-19-2012, 09:26 AM   #4
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
Quote:
Originally Posted by alex_matt View Post
And if i want to block them only in elinks what i need to do.
Could you explain the purpose that you need to block only elinks?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
restrict internet bandwidth using squid coolamit78 Linux - Networking 2 08-15-2009 01:50 AM
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 12:33 PM
Outlook Web Acces and Squid jocast Linux - Server 2 10-17-2008 06:14 PM
SQUID for blocking yahoo and msn [inc squid.conf] chrisfirestar Linux - Security 10 03-03-2008 09:33 AM
how to restrict downloading in squid capricorn80 Linux - Networking 1 09-12-2006 07:24 AM


All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration