LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-07-2017, 07:17 AM   #1
jogyulas
LQ Newbie
 
Registered: May 2014
Location: Hungary
Posts: 29

Rep: Reputation: Disabled
how to not block facebook contents on websites while facebook.com is denied


hi,

There is a squid proxy server which handles all of http and https request. This server uses ntlm auth to authenticate and deny/allow acl for users. I deny facebook access and it works properly. But my problem is that when I reach a site for example cnn.com which has facebook contents (share, like, login,) I get an authentication popup window to give an username and password. It is very annoying...
So my question is whether is there any solution to block facebook website but not block other websites which has some facebook contents with squid?

thanks in advance
 
Old 03-08-2017, 03:48 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,108

Rep: Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905Reputation: 2905
A real problem with stuff like that. Modern pages are full of links to junk.

Not everyone's choice but I'd make a hosts file entry for facebook.com to 0.0.0.0

There might be plenty of ways around this too from white and black lists in iptables to making a proxy.pac file and using layer 7+ firewalls.
 
Old 03-09-2017, 03:00 AM   #3
jogyulas
LQ Newbie
 
Registered: May 2014
Location: Hungary
Posts: 29

Original Poster
Rep: Reputation: Disabled
Dear jefro,

Thanks your response. I don't want to deny facebook for all user just for a few, so unfortunately host file or iptables aren't good options
 
  


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] Can Ping, can traceroute but cannot browse certain websites such as facebook / twitte Brun0L3z Linux - Networking 9 01-18-2014 04:27 PM
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 - Server

All times are GMT -5. The time now is 02:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration