LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-01-2010, 08:36 PM   #1
costam
LQ Newbie
 
Registered: Mar 2010
Location: East Timor
Distribution: Linux Fedora Core 8
Posts: 12

Rep: Reputation: 0
How to Block Websites in Proxy!!!!


dear all,

here i would like to inform you that my company ask me to block facebook site at the work time it is: 08:00-12:30 and 14:00-17:30 in proxy server...but i'm still confuse how to do!!!

i need the details configuration in squid regarding how to block the sites.

could anybody help me?

your feedback is my best solution!!!

thanks for all,


Matias,
 
Old 07-01-2010, 09:43 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Tweed Heads, Australia
Distribution: Devuan
Posts: 3,441
Blog Entries: 33

Rep: Reputation: 230Reputation: 230Reputation: 230
Hi Matias, I saw a thread that may help you...

http://www.linuxquestions.org/questi...64#post4020564

Cheers, Glenn
 
Old 07-02-2010, 02:03 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by costam View Post
here i would like to inform you that my company ask me to block facebook site at the work time it is: 08:00-12:30 and 14:00-17:30 in proxy server...but i'm still confuse how to do!!!

i need the details configuration in squid regarding how to block the sites.

could anybody help me?

your feedback is my best solution!!!
I haven't done this in a while, but IIRC it should go like this (example):
Code:
acl facebook dstdomain .facebook.com
acl shift_early time S M T W H F A 08:00-12:30
acl shift_late time S M T W H F A 14:00-17:30

http_access deny facebook shift_early
http_access deny facebook shift_late
http_access allow all
You'll obviously need to tweak it to fit your needs (for example, you might want to allow Facebook all day on Sundays, or create exceptions for certain IPs, etc.). Also, the last line is just for context, as I have no idea what your current setup looks like.

Last edited by win32sux; 07-02-2010 at 02:06 AM.
 
  


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
How to block ALL websites except 2 glenn69 Linux - Networking 8 12-12-2019 12:56 PM
how to block unwanted websites in redhat squid proxy gautamnarayan Linux - Server 1 02-26-2009 10:41 AM
How to block specific Websites? alfredh SUSE / openSUSE 3 06-24-2006 05:17 AM
how to block websites .. huno Linux - Software 5 04-22-2004 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:18 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
Open Source Consulting | Domain Registration