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
------------------------------
Original Message:
Sent: Wed September 28, 2022 09:07 PM
From: Samir DxC
Subject: Consumer app hostname or IP address
Is there a way the hostname or IP address of the client app calling my API (by script):
var apim = require('apim);
var urlopen = require('urlopen');
Second question: I would like to restrict calls to come ONLY from specific host (to mitigate risk)
------------------------------
Samir Almousawi
------------------------------