URL expression

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

URL expression

L2 Linker

please, how to write url expression if I want to block all domains including some word e.g.xxxx.

exapl blocked domain nicexxxxday.***

9 REPLIES 9

Not applicable

Hi, use a custom URL category to achieve this Smiley Happy

"Objects" tab, > "Custom URL Category" to create it.

You can match entire domains or use wildcards if you need.

I need wildcard but dont know how to write it for this case - looking for a word somewhere inside the domain

Thank you for help

Not applicable

Well in this case you can create a custom application signature with a simple regex containing any words you like.

For example, you can match the context "http-req-host-header" with the required regex to filter on domain names.

Please also have a look at https://live.paloaltonetworks.com/docs/DOC-1499 if it can help you.

I tried to create signature butI cannot commit it because word is shorter than 7 letters. Is there any workaround?

Not applicable

Yes, the match engine requires at least 7 consecutive bytes for filters.

What does your filter look like at the moment ?

at this moment I only try to solve requirement, I created test rule with signature as you propose. In pattern field I wrote .*(xxxxxx)

(xxxxxx is word I have to block in all web requests)

any idea, how to solve it?

many thanks

Not applicable

As explained by Mikand here : https://live.paloaltonetworks.com/message/25100#25100

You can add wildcards at the beginning and/or the end of an expression to get past the 7-bytes limitation Smiley Happy

hmm, I tried to type .*xxxxxx.* into the field pattern but again - Operation failed

-> signature -> test -> and-condition -> And Condition 1 -> or-condition -> Or Condition 5 -> operator -> pattern-match -> pattern '.*xxxxxx.*' is invalid. pattern must be at least 7 bytes

  • 5324 Views
  • 9 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!