how I careate a wild card include all *blockedPage*?

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

how I careate a wild card include all *blockedPage*?

L1 Bithead

Hi I use Paloalto 500 and os 7.0.x

1. how could I write a url filter to block all url as follow.  http or https

 

https://www.XXXX.com/xxx/xxx/xx/blockedPage/xxx...

or

https://xxx.xxxxxx.xxx/xxx......./blockPagexxxxx

 

 

3 REPLIES 3

Hi @Bin

Just a quick question. When you say "Block all URLs", can you clarify exactly what you mean?

 

When using wildcards in the URLs, you must follow these rules:

 
  • Entries in the block list must be an exact match and are case-insensitive.

For example: If you want to prevent a user from accessing any website within the domain acme.com, you would also add *.acme.com

 

These additional two articles may be of help to you

URL Filtering -Block and Allow Lists

https://www.paloaltonetworks.com/documentation/70/pan-os/pan-os/url-filtering/block-and-allow-lists

 

DotW: URL Wildcard Pattern

https://live.paloaltonetworks.com/t5/Featured-Articles/DotW-URL-Wildcard-Pattern/ta-p/136449

 

I hope this helps.

 

Willian

Sorry

 

My mean is

www.yahoo.com/test/blockPage/test.html or mail.google.com/pec/texo/blockPage.html or www.foo.co.cn/peos/blockPagePOL/xxx.html.

 

all three url link contains blockPage, how could I block them in one wildcard block rule?

 

Ok Got it.

So, there are two ways you can do this, the first way is by creating a Custom URL Category, and then setting that to block inside your URL filtering profile. The second way, would be to add the URLs you want to block to the Block List inside your existing URL filtering profile.

 

First Example - Custom URL Category:

Step 1:

Screen Shot 2017-06-12 at 8.27.07 AM.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step 2:

Screen Shot 2017-06-12 at 8.29.09 AM.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Second Example - URL Filtering Block List
Screen Shot 2017-06-12 at 8.37.03 AM.png

 

 

 

 

 

 

 

 

 

 

 

One important thing to note in the above example, is that if you specify for example www.yahoo.comit means that anything added after "/" will also be a match, and hence will be blocked. In this situation it is not a wildcard block, but specific blocks. Now if you want to block anything related to the domains themselves, then yu have to use something like *.yahoo.com, so anything that matches the domain will be blocked completed, but you still have to use one of the methods I have described above.

 

I hope this helps.

 

Willian

  • 2405 Views
  • 3 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!