5

On a Windows or Mac computer, I'd edit the hosts file:

127.0.0.1     facebook.com
127.0.0.1     www.facebook.com
127.0.0.1   login.facebook.com
127.0.0.1   www.login.facebook.com
127.0.0.1   fbcdn.net
127.0.0.1   www.fbcdn.net
127.0.0.1   fbcdn.com
127.0.0.1   www.fbcdn.com
127.0.0.1   static.ak.fbcdn.net
127.0.0.1   static.ak.connect.facebook.com
127.0.0.1   connect.facebook.net
127.0.0.1   www.connect.facebook.net
127.0.0.1   apps.facebook.com


# Block Facebook IPv6
#fe80::1%lo0     localhost
::1     facebook.com
::1     www.facebook.com
::1     login.facebook.com
::1     www.login.facebook.com
::1     fbcdn.net
::1     www.fbcdn.net
::1     fbcdn.com
::1     www.fbcdn.com
::1     static.ak.fbcdn.net
::1     static.ak.connect.facebook.com
::1     connect.facebook.net
::1     www.connect.facebook.net
::1     apps.facebook.com
::1     edge-star6-shv-02-ams2.facebook.com

How would I do this on an iOS device (not jailbroken). Can I do this with a provisioning profile?

2
  • There are two kinds of net connections available iOS devices, those with wifi and cellular, and those with just wifi. Are you asking how to block for both types of connections?
    – IconDaemon
    Commented Nov 13, 2015 at 22:40
  • Well Cellular or WiFi iPads can only be updated 1 way. If you're on Cellular, the firmware does NOT download. If you won't use WiFi then you have to connect to a Mac/PC with USB. This is great for consumers who only have 1 or 2 iPads. But organizations have more than 30 will be difficult Commented Nov 16, 2015 at 14:38

2 Answers 2

2

Not directly, but you could use a provisioning profile to assign a web proxy or custom DNS server to perform your filtering.

3
  • I can setup a Proxy Server at home so when it's on my WiFi, FaceBook is blocked or redirected to another site. However when the connection uses Cellular, my proxy servers won't really do anything. Commented Nov 14, 2015 at 20:09
  • @softwareisfun yep - a VPN to your home proxy would be needed for cellular protection.
    – bmike
    Commented Nov 14, 2015 at 20:11
  • I have no idea how to even start setting up VPN to my Home network using OS X Server. Nor do I know how slow the Internet could become if we did this. Commented Nov 16, 2015 at 0:43
0

You can use safari plugins to help you blocking URL's, like 1Blocker and use the 'Block URL's function.

1Blocker

BTW, another way would be to use a custom DNS server.

3
  • 1
    Blocking it here maybe a good idea but the End user can easily unblock. If there was an App that required authentication to change settings, that would be really good Commented Nov 14, 2015 at 20:08
  • This doesn't work with iPhone 5! It says it needs iPhone 5s! WTF? They both have iOS 9.
    – Chloe
    Commented Mar 19, 2016 at 21:21
  • @Chloe, ^ and therefor a downvote? Commented Mar 20, 2016 at 14:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .