Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer

Rule to block request if url contains IP address

Hello,

 

I would like to block all request at checkpoint when user will use directly IP address to access websites. As i read about it, it requires to write proper regex for it, i tried to use the following regex, but checkpoint did not accept it.

 

[0-9]+\.[0-9]+\.[0-9]+\.[0-9]

0 Kudos
1 Reply
Highlighted

Hello,

Please try the following reg instead and advise results:

\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}

It should match any IPv4 address.

I hope this helps.

0 Kudos