Palo Alto can block URLs with queries which comes after the “?”,

Reply
Highlighted
L3 Networker

Palo Alto can block URLs with queries which comes after the “?”,

Our Palo Alto is running 8.1.10, and we integrate it with TrendMicro to receive dynamic URL lists.

 

We would like to know if Palo Alto can block URLs with queries, what I mean by queries is the part of the URL which comes after the “?”,

 

for example, http://www.test.com/search?q=test&rlz=1C1GCEA http://www.test.com/en/search/Pages/results.aspx?k=test


Accepted Solutions
Highlighted
Community Team Member

Hi @Mohammed_Yasin ,

 

If you want to block this specific URL then you can add it into a custom URL category and block the category. 

Alternatively you can create a custom signature and match a pattern for anything after the "?" and block that.

Maybe try a custom signature with a pattern match on "keywords=bats"

 

As this is SSL traffic you'll also need to make sure to decrypt the traffic first ...

 

Looks kinda ugly though and difficult to manage if you need to add more of those regularly.

-Kiwi.

 

 

View solution in original post


All Replies
Highlighted
Community Team Member

Hi @Mohammed_Yasin ,

 

Not sure how granular you want to go but you could create custom signatures using regex pattern matches.  This has some limitations though.  The pattern must have string of at least 7 bytes to match. It can contain more than 7 bytes, but not fewer.

 

Cheers,

-Kim.

 
Highlighted
L3 Networker

Thanks for the update...

 

I mean..For example, can Palo Alto block this exact URL,

 

https://www.amazon.com/Bats-Lou-Diamond-Phillips/dp/B006FDT6L0/ref=sr_1_1?dchild=1&keywords=bats&qid...

But allow all other AMAZON URLs

Highlighted
Community Team Member

Hi @Mohammed_Yasin ,

 

If you want to block this specific URL then you can add it into a custom URL category and block the category. 

Alternatively you can create a custom signature and match a pattern for anything after the "?" and block that.

Maybe try a custom signature with a pattern match on "keywords=bats"

 

As this is SSL traffic you'll also need to make sure to decrypt the traffic first ...

 

Looks kinda ugly though and difficult to manage if you need to add more of those regularly.

-Kiwi.

 

 

View solution in original post

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

The Live Community thanks you for your participation!