Hi Samir,
>For first question: you can get IP address default in headers and App name can get through context variables using those can prepare the Custom policy as per your expected.
>For second question:
You can achieve this two procedures
1. API URL default picking the clients IP, this request header can be validate as per your saved document with list of IP's.
2. Gateway can providing the feature Access control list to identify the all the Clients IP's.
------------------------------
kandula nagababu
------------------------------