How to maintain a whitelist of externally requested services and hosts and block any interactions that do not appear on the whitelist?
I am looking for some code snippet for implementation of this.
How to maintain a whitelist of externally requested services and hosts and block any interactions that do not appear on the whitelist?
I am looking for some code snippet for implementation of this.
Copyright © 2021 Jogjafile Inc.
you can create an
ActionFilter
, which will check the request host/ip address, compare which db and block request when not found.