ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    web filtering using Host file

    Scheduled Pinned Locked Moved IT Discussion
    37 Posts 3 Posters 4.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IT-ADMINI
      IT-ADMIN
      last edited by

      hi everybody

      actually i want to know the efficiency of using host file to block some website like facebook and youtube, is it a reliable method or not, i mean that : does users can bypass this host file or not, knowing that we are in a windows domain (limited users cannot edit their host file)

      thank you very much

      1 Reply Last reply Reply Quote 0
      • JoyJ
        Joy
        last edited by

        Hello We been using this method of blocking for almost 2 years until i learn about firewall 🙂
        Thank you for sharing 🙂

        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller
          last edited by

          Anything involving hostname lookups (DNS, hosts files, etc.) can be bypassed simply by using IP addresses and/or proxies. It makes it inconvenient but blocks nothing.

          IT-ADMINI 1 Reply Last reply Reply Quote 1
          • IT-ADMINI
            IT-ADMIN
            last edited by

            me also, i use pfSense as proxy server, the problem is : recently i discover that on of the users access Facebook by using Firefox Portable Application, because firefox don't use proxy setting of the system, so i'm looking of some way to block those websites in the system level,

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • IT-ADMINI
              IT-ADMIN
              last edited by

              if i block those website by using IP subnet, this may not be efficient because IP subnets used by those website are changing and big in number

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • IT-ADMINI
                IT-ADMIN @scottalanmiller
                last edited by

                @scottalanmiller sorry Sir, what do you mean by : it can be bypassed simply by using IP addresses ????

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @IT-ADMIN
                  last edited by

                  @IT-ADMIN said:

                  me also, i use pfSense as proxy server, the problem is : recently i discover that on of the users access Facebook by using Firefox Portable Application, because firefox don't use proxy setting of the system, so i'm looking of some way to block those websites in the system level,

                  Proxies need to be inline. There should be no way to the web except via the proxy. It takes the proxy and the firewall working together but a properly implemented proxy cannot be byapssed.

                  1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @IT-ADMIN
                    last edited by

                    @IT-ADMIN said:

                    @scottalanmiller sorry Sir, what do you mean by : it can be bypassed simply by using IP addresses ????

                    Try MangoLassi as an example. Block it in your DNS or hosts file then go to http://162.242.243.171/

                    Nothing was blocked at all, it turns out.

                    1 Reply Last reply Reply Quote 1
                    • scottalanmillerS
                      scottalanmiller @IT-ADMIN
                      last edited by

                      @IT-ADMIN said:

                      if i block those website by using IP subnet, this may not be efficient because IP subnets used by those website are changing and big in number

                      Correct, that does not work either. Proxies are, quite honestly, the only reliable method of web filtering.

                      1 Reply Last reply Reply Quote 1
                      • IT-ADMINI
                        IT-ADMIN
                        last edited by

                        the problem is proxy server can easily bypassed by portable application like firefox, this is the problem

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @IT-ADMIN
                          last edited by

                          @IT-ADMIN said:

                          the problem is proxy server can easily bypassed by portable application like firefox, this is the problem

                          That's because it isn't completely set up. It is just an optional proxy. That's why the proxy plus firewall is the complete setup, a proxy is useless all by itself. The firewall ensures that you cannot bypass the proxy by blocking all web traffic that doesn't originate from the proxy. A correctly setup proxy cannot be bypassed. Every Fortune 1000 uses proxy servers and keeps them from being bypassed.

                          1 Reply Last reply Reply Quote 1
                          • IT-ADMINI
                            IT-ADMIN
                            last edited by

                            pfSense is firewall and proxy,
                            so what will be the role of the firewall in this scenario, he will block what exactly ???

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @IT-ADMIN
                              last edited by

                              @IT-ADMIN said:

                              pfSense is firewall and proxy,
                              so what will be the role of the firewall in this scenario, he will block what exactly ???

                              It blocks all outbound Port 80 and Port 443 except for for the proxy server. That way ALL web traffic has to go through the proxy, no matter what. You can bypass the proxy still, but there is nowhere to go because the web only exists through the proxy server.

                              1 Reply Last reply Reply Quote 2
                              • IT-ADMINI
                                IT-ADMIN
                                last edited by

                                firewall rules can block traffic based on IPs, not URLs

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • IT-ADMINI
                                  IT-ADMIN
                                  last edited by

                                  aahh i see what you mean Mr Scott, i should block all traffic except for outbound traffic going to my proxy server

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @IT-ADMIN
                                    last edited by

                                    @IT-ADMIN said:

                                    firewall rules can block traffic based on IPs, not URLs

                                    And by ports, most importantly.

                                    1 Reply Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller @IT-ADMIN
                                      last edited by

                                      @IT-ADMIN said:

                                      aahh i see what you mean Mr Scott, i should block all traffic except for outbound traffic going to my proxy server

                                      Exactly. That takes care of the general networking workaround. Now the proxy is in control of traffic and can determine where people can go.

                                      1 Reply Last reply Reply Quote 1
                                      • IT-ADMINI
                                        IT-ADMIN
                                        last edited by

                                        i just test it right now, but it has affected other ports like outlook, now i cannot sent and receive mails,

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @IT-ADMIN
                                          last edited by

                                          @IT-ADMIN said:

                                          i just test it right now, but it has affected other ports like outlook, now i cannot sent and receive mails,

                                          Only block 80/443 for now. The proxy doesn't handle other protocols.

                                          1 Reply Last reply Reply Quote 0
                                          • IT-ADMINI
                                            IT-ADMIN
                                            last edited by

                                            yes, i will open all ports except 80 and 443 for all destination, and for those 2 ports i should forward them only to the proxy IP

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post