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 03-24-2011, 02:27 AM   #1
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Rep: Reputation: 0
Block a site


Hi,

Good day! I have this problem with a user that is consistently viewing porn sites. Unfortunately he has the privilege to access all site because he's IP is in the exception ip list of dansguardian. (By the way he is a Manager.) I just want to block the porn site to all those who is in the exceptioniplist.

How will i do that?

Thank you and have a great day!
 
Old 03-24-2011, 02:56 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
If his IP is exception site list, it will be an exception always. Even if the site is blocked for others. If you are using DansGuardian with Squid, then you can block the site in squid and not put his IP as exception there. You can have a better granular control in squid than Dans. Else you can create multiple access control lists in dans. But this could put your resources under some pressure.
 
Old 03-24-2011, 03:04 AM   #3
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
So you mean that I can't block certain sites if the IP is in the exceptioniplist?
 
Old 03-24-2011, 03:13 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Right. Not with your default settings. Do you see other configuration files than dansguardian.conf like dansguardianf1.conf and similar? Use them to customize your configuration. But mind that do not use more than 10 config files. For every custom file, dansguardian spawns a new process and will eat your resources.
 
Old 03-24-2011, 03:18 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Off-Topic
Quote:
Originally Posted by willcastle View Post
(By the way he is a Manager.)
How about putting a CCTV camera in his cabin?
 
Old 03-24-2011, 03:37 AM   #6
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
@Anisha- I wish I can do that.lol
@linuxlover.chaitanya- Well there is a dansguardianf1.conf but as you've said that there is no way in my current config.
Thanks anyway, I appreciate it.
 
Old 03-24-2011, 03:41 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Well if I could, I would have pointed you to a very helpful site for dansguardian configuration. It is not at hand. But you can surely do what you want if you keep your eyes and ears open. Look more into it and you will know how to do that. Will find the link and give when I can.
 
Old 03-24-2011, 03:42 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
http://contentfilter.futuragts.com/w...b75dbde310c97c

This is what you need. The filter groups configuration for your needs. But are not you using Dans with squid?

---------- Post added 24th Mar 2011 at 13:12 ----------

http://contentfilter.futuragts.com/w...b75dbde310c97c

This is what you need. The filter groups configuration for your needs. But are not you using Dans with squid?
 
Old 03-24-2011, 03:43 AM   #9
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
I haven't used Dansguardian so i'm not sure I can help with that but couldn't you just put a modified hosts file on his PC? Seems like a simple, and probably naive, answer I know.
 
Old 03-24-2011, 03:51 AM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
<Deleted>

Last edited by TheIndependentAquarius; 03-24-2011 at 03:54 AM.
 
Old 03-24-2011, 04:06 AM   #11
willcastle
Member
 
Registered: Sep 2010
Location: Philippines
Distribution: Centos
Posts: 63

Original Poster
Rep: Reputation: 0
I'll check this links. Thank you very much for the time. I really appreciate this.
 
  


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
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 2 08-17-2010 02:49 PM
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 1 08-17-2010 01:09 PM
Can you block IE from using this site? resetreset LQ Suggestions & Feedback 28 07-29-2008 09:57 AM


All times are GMT -5. The time now is 12:02 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