Koozali.org: home of the SME Server

How do I block users from visiting https://www.facebook.com?

Offline asaidi

  • 4
  • +0/-0
How do I block users from visiting https://www.facebook.com?
« on: August 30, 2011, 02:08:42 PM »
Hello.  I need to block students from accessing facebook.com but it looks like if one types https://facebook.com, they are able to bypass dansguardian.  How do I block this site in sme server 7?

Thanks.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How do I block users from visiting https://www.facebook.com?
« Reply #1 on: August 30, 2011, 05:25:50 PM »
Hello.  I need to block students from accessing facebook.com but it looks like if one types https://facebook.com, they are able to bypass dansguardian.  How do I block this site in sme server 7?
AFAIK you can not block https traffic by the nature of the protocol. Do a search in the forums as I seem to remember this has been asked in the past. Suggested keywords: dansguardian, https
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How do I block users from visiting https://www.facebook.com?
« Reply #2 on: August 30, 2011, 05:36:58 PM »
asaidi

A workaround is that you can add facebook.com to the SME server Domains panel in server manager. Select Resolve locally.
Then when a user behind SME server who uses SME as their gateway for Internet access tries to access https:/facebook.com they will be redirected to your nominated site (as per the content location for that domain in server manager eg the primary domain site).
This will apply to all users.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How do I block users from visiting https://www.facebook.com?
« Reply #3 on: August 30, 2011, 05:52:44 PM »
if you are a little BOFH inside, you could something like this:

http://www.serbestcagrisim.com/archives/better-faster-stronger

;-)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How do I block users from visiting https://www.facebook.com?
« Reply #4 on: August 30, 2011, 10:25:31 PM »
This will apply to all users.

It will apply to all users - except those who know how to adjust their hosts file, or use 8.8.8.8 for DNS resolution, and who know to use https.

Nevertheless, it's a good simple (partial) solution.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How do I block users from visiting https://www.facebook.com?
« Reply #5 on: August 30, 2011, 10:26:40 PM »
if you are a little BOFH inside, you could something like this:

http://www.serbestcagrisim.com/archives/better-faster-stronger

I don't think that will work for https.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How do I block users from visiting https://www.facebook.com?
« Reply #6 on: August 30, 2011, 11:00:50 PM »
AFAIK images are not under https..

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How do I block users from visiting https://www.facebook.com?
« Reply #7 on: August 31, 2011, 05:11:36 AM »
AFAIK images are not under https..

OK, so squid can block images from facebook... :-)

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: How do I block users from visiting https://www.facebook.com?
« Reply #8 on: September 07, 2011, 02:32:13 PM »
I use opendns for this job - works a treat!
"If you don't know what you want, you end up with a lot you don't."

Offline hawk

  • *
  • 141
  • +0/-0
    • hawkelectronics
Re: How do I block users from visiting https://www.facebook.com?
« Reply #9 on: September 07, 2011, 04:49:36 PM »
i have been using untangle, works either inline with your sms server or in parallel, the free option servers all our needs.

tks john