Allow only http://example.com and block everything else using firewall rules
-
Hiiiiiiiiiiiiiii
As per above subject I want to block everything else except one particular url http://example.com.
how to do this using firewall rules.
-
-
Create a alias for example.com.
-
Create a pass rule with the alias above as destination and destination port set to http on the interface where the clients are connected (LAN?).
-
Create a reject rule for all traffic below the pass rule. This is not absolutely necessary as there is a default block rule at the bottom but the reject will make the clients time out faster.
-
-
Important note: this will NOT block/allow the URL. It will allow/block any traffic matching the rule and IPs the alias resolves to. (Say, you have 1000s of websites on a shared webhosting server behind a single IP. )