Forum Discussion

CHRISTY_THOMAS's avatar
Jan 05, 2024

How to restrict a url access from a specific two ip's

Hi,

How to retsrict a url access from internet for a specific two ip's ! 

whether it can be achieved via LTM policy or via irule?

logic that i have cretaed using irule given below:

when HTTP_REQUEST {

if{[HTTP::path] contains "/abc/update" and [IP::addr [IP::client_addr] equals 104.123.3.1] or [IP::addr [IP::addr [IP::client_addr] equals 117.23.2.1]}

else{

reject

}

Requesting immediate assistence