Community discussions

MikroTik App
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

How to Block Facebook?

Tue Nov 09, 2010 9:58 am

Hello
I want to block just www.facebook.com or facebook.com sites. (I do NOT Want to block sites by IP address, as they can be avoided by anonymous surfing)
How can I block this sites ONLY.
There are some sites, which have links to www.facebook.com.
When I block the sites by content (/ip firewall filter add chain=forward content="facebook.com" accion=drop), the site which contains link to facebook, can not be opened.
I can not use proxy. what can I use, is only Layer7 or content.

Waiting for Reply

Thanks
Regards Karapet Aznavuryan
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: How to Block Facebook?

Tue Nov 09, 2010 10:58 am

Personally, I would use the built-in web proxy, but this is just my preference.

That being said, you could also use a DNS static entry for all *.facebook.com and redirect to your router IP, or 127.0.0.1. The Mikrotik Wiki has a good entry on this topic.

Hope this helps,
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: How to Block Facebook?

Wed Nov 10, 2010 5:12 pm

Personally, I would use the built-in web proxy, but this is just my preference.

That being said, you could also use a DNS static entry for all *.facebook.com and redirect to your router IP, or 127.0.0.1. The Mikrotik Wiki has a good entry on this topic.

Hope this helps,
Thanks bro, its very helpfull for me.

but Your Users can use facebook using anonymous proxies.
 
proggams2
Member Candidate
Member Candidate
Posts: 140
Joined: Wed Mar 14, 2007 10:15 pm

Re: How to Block Facebook?

Wed Nov 10, 2010 7:21 pm

Thats wrong, because if you block facebook using this way (web proxy) they can access it throw anonymous proxies.
The best thing is to drop facebook.com ip addresses:
Name: facebook.com
Addresses: 69.63.181.12, 69.63.189.11, 69.63.189.16
Add those ip's to and address list called facebook
Go to IP-Firewall-Filter then add a "input" with "drop" rule and select the src address list named facebook
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: How to Block Facebook?

Wed Nov 10, 2010 7:28 pm

Thats wrong, because if you block facebook using this way (web proxy) they can access it throw anonymous proxies.
The best thing is to drop facebook.com ip addresses:
Name: facebook.com
Addresses: 69.63.181.12, 69.63.189.11, 69.63.189.16
Add those ip's to and address list called facebook
Go to IP-Firewall-Filter then add a "input" with "drop" rule and select the src address list named facebook
When You drop by IP address it won't block if you use anonymous proxy, as the IP address of anonymous proxy is NOT the same with facebook IP address. Only way is layer7 or content.
I have done my setup using content filter.
 
proggams2
Member Candidate
Member Candidate
Posts: 140
Joined: Wed Mar 14, 2007 10:15 pm

Re: How to Block Facebook?

Thu Nov 11, 2010 1:30 pm

so drop 69.63.189.0/24
 
User avatar
karo84
Member Candidate
Member Candidate
Topic Author
Posts: 194
Joined: Fri Aug 17, 2007 9:06 am

Re: How to Block Facebook?

Thu Nov 11, 2010 1:55 pm

so drop 69.63.189.0/24
will not work )
As say my proxy server is from address 72.XX.XX.XX/24 range)
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: How to Block Facebook?

Thu Nov 11, 2010 2:05 pm

Why are you blocking just facebook? Just curious...
OK, don't tell me. Let me guess instead! :D
1) You work for MySpace.
2) It is a business and you have lost control of your employees.
3) It is a school and you would rather them visit porn sites.
4) The Armenian government has banned social networking sites.

That is all I could come up with in 20 seconds...

ADD: If the reason is #2, this is what I recommend to my customers:
http://en.wikipedia.org/wiki/Pink_slip_%28employment%29

Nothing personal against facebook tho.This is also what I recommend if one of my customers catches one of their employees with a CD, memory stick, or any other type of memory device at work.

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot] and 171 guests