LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2014, 01:49 AM   #1
cboys00
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Rep: Reputation: Disabled
how to block youtube and facebook


i am using fedora 14, and as lab admin...want to block youtube and facebook from 0800 to 1340....

any recommended step to help me.

if possible...using GUI because i am not good in coding

sorry.
 
Old 11-15-2014, 06:10 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
sigh... due to LQ's zero-reply policy this post will just keep popping up unless someone answers, so it may just as well be me...

so:

1) fedora 14 is hopelessly outdated, dead, end of life.
2) have you researched the matter yourself or are you just asking? there might very well be an app in the repos that does some family internet restricting.
3) this is fairly easy to implement with the command line, but not gui. sorry.
4) you will have to restart your browser for changes to take effect. come to think of it, firefox most probably has an add-on that does exactly what you want.
 
Old 11-15-2014, 06:30 AM   #3
cboys00
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
sigh... due to LQ's zero-reply policy this post will just keep popping up unless someone answers, so it may just as well be me...

so:

1) fedora 14 is hopelessly outdated, dead, end of life.
2) have you researched the matter yourself or are you just asking? there might very well be an app in the repos that does some family internet restricting.
3) this is fairly easy to implement with the command line, but not gui. sorry.
4) you will have to restart your browser for changes to take effect. come to think of it, firefox most probably has an add-on that does exactly what you want.
thanks....

1) yes...i know
2) have search using google...and also in this forum...like

http://wiki.squid-cache.org/Features/DelayPools

http://www.linuxquestions.org/questi...es-4175499252/

but i not understand...

3) can share the command line...i want to try

4) yes ..had try block in firefox and IE at client PC...but it have 60++ pc to do so...
 
Old 11-15-2014, 02:30 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by cboys00 View Post
4) yes ..had try block in firefox and IE at client PC...but it have 60++ pc to do so...
so you're looking for a solution to apply this to 60+ machines?
for the lord's mercy, didn't you think of mentioning this from the beginning?
that opens up a few different things to be dealt with. maybe it should be done on your router, anyway.

so what, besides searching the web, have you done so far?
what is the exact situation? so far you have been asking in a very roundabout way and i erroneously assumed you are a home user, 1 machine.
are all your 60+ machines using fedora 14?
all the more reason to upgrade your system(s).

Last edited by ondoho; 11-15-2014 at 02:32 PM.
 
Old 11-18-2014, 01:03 AM   #5
brak44
Member
 
Registered: Aug 2010
Location: Brisbane Australia
Distribution: Centos, Fedora
Posts: 87

Rep: Reputation: 24
I recently implemented this using a Centos 6.5 server for a client with 25 win 7 workstations.
Install squid (not necessary to implement delay pools and recompile) just do a
yum install squid
Configure it as a NON TRANSPARENT proxy server.
You need to do this as Facebook uses https and it won't work with a transparent config.

Then set up some acl's in squid.conf (this is just the relevant bits)

acl CONNECT method CONNECT
acl blocksites dstdomain "/etc/squid/restricted-sites.squid"
acl socialmedia dstdomain "/etc/squid/social-media.squid"
acl morning time MTWHF 08:00-12:00
acl afternoon time MTWHF 13:00-17:00
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access deny blocksites
http_access deny socialmedia morning
http_access deny socialmedia afternoon
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128

I've also added blocksites which contain all Rupert Murdoch's news and entertainment sites which are permanently blocked.

You then create 2 list files called restricted-sites.squid and social-media.squid then populate.
You put facebook.com in the social-media.squid file along with twitter.com etc
This prevents access on work days except after hours and lunch time.

You will then need to tell each of the workstations that they are using a proxy server (do this in Control Panel in Internet Settings).

Once this is running then you can get the reporting up and running.
I used sarg.
 
1 members found this post helpful.
  


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
[SOLVED] Problem with youtube, LQ, facebook,etc in -current cesarion76 Slackware 33 06-26-2014 10:05 AM
How to deny access to https youtube,facebook rj_gtx Linux - Networking 17 09-03-2013 04:42 AM
Most YouTube videos and Facebook games won't play. LinuxLiker Linux - Software 13 04-19-2012 08:54 AM
Try to block https://facebook.com but cannot able to do this yet tanin007 Linux - Software 10 01-13-2012 08:09 AM
How to block facebook?.. Winanjaya Linux - Security 3 11-30-2009 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:50 AM.

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