Pattern regex less then 7 bytes

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Pattern regex less then 7 bytes

L1 Bithead

Hi all,

I have been asked to create a new Application signature to block any access to /abc/*

But when adding the pattern /abc/* in context http-req-uri-path

I get an error: "pattern must be at least 7 bytes [/abc/*]"

 

How can I block any access to /abc/* ?

 

Regards,

Noam.

1 accepted solution

Accepted Solutions

Hello

 

How about using the URL custom blocklist? You can create a custom URL list with URL "https://www.mysite.com/mng/login" and set up as blocked.

 

Best

Himani

 

Himani Singh

View solution in original post

4 REPLIES 4

L4 Transporter

Hello 

 

In 8.1, 9.x series; the Pattern will not be accepted if it is less than 7. We need some more data like any other common characters in the string to match. 

Here is the document that explained how the customer signatures are created: https://knowledgebase.paloaltonetworks.com/servlet/fileField?entityId=ka10g000000U0ruAAC&field=Attac...

Best

Himani

Himani Singh

Hi @hisingh 

Thank you for the answer and referring me to the PDF - it's  helpful.

 

Well,

The dir I need to block is /mng/ like

https://www.mysite.com/mng/login

 

As you can see, the uri /mng/ is less than 7 bytes...

 

Hello

 

How about using the URL custom blocklist? You can create a custom URL list with URL "https://www.mysite.com/mng/login" and set up as blocked.

 

Best

Himani

 

Himani Singh

Hi,

 

Thank you for your idea, it answers the requirement.

 

Regards,

Noam.

  • 1 accepted solution
  • 6579 Views
  • 4 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!