How to create a setup so that our machine would connect with some specific sites only?


  1. Knowledge of Gateway.
  2. We would need connectivity.
  3. Routing table

Routing Table:

In the computer language, the Routing table is a set of rules, often viewed in table form that is used to determine where data packets traveling over an Internet Protocol (IP) network will be directed. All IP-enabled devices, including routers and switches, use routing tables.


A gateway is a hardware device that acts as a “gate” between two networks. It may be a router, firewall, server, or another device that enables traffic to flow in and out of the network.



First, ensure that whether we have connectivity with both of the sites(GOOGLE & FACEBOOK) or not.


Restrict the local machine from internet connectivity.


Allow your local machine to connect with google server, but not with Facebook.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store