I'd like to create a URL filter to block/deny any URL that has an arbitrary string in it.
I was referred to this forum by Palo Alto Support.
In this specific case, the string I'd like to block is "Automated_Clearing_House_transaction".
How can I do this?
Solved! Go to Solution.
For this case, would the following regex work?
Which regex engine does PAN use so I can find a tester?
How do I apply this to a policy?
Regex is done in custom hardware, so it's not just a standard off-the-shelf engine, but for these purposes it's close enough to PCRE. In fact since you're just doing a string match simply using Automated_Clearing_House_transaction will work.
I created and tested a signature with the following config:
and it worked on a test url:
The XML for the signature is:
drogers@Captain.America# show threats vulnerability 42001 signature
<entry name="And Condition 1">
<entry name="Or Condition 1">
I'm actually trying to handle:
I ended up using:
I used this to test: http://regexpal.com/
What do you think?
Any way to make the regex case insensitive?
is not accepted by PAN.
Local SE confirmed that there is no case-insensitive support... would utilize too much CPU.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!