- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-19-2022 08:46 AM
I'm having trouble figuring out what expression to use(in a Custom URL Category) to match any variation of HTTP requests for an entire website. For example, I want a single expression to be able to match/block/permit the following HTTP requests...
So far I've only been able to match all of the above by using 2 expressions in the Custom URL Category...
Does anyone know of a way to match an entire website using a single expression?
12-19-2022 01:24 PM - edited 12-19-2022 01:30 PM
The way PA URL pattern matching works (left start string matching up to separator) it requires a minimum of 2 expressions, one for the root domain and one for any subdomain plus root domain, to properly match a website.
example.com/
*.example.com/
Theoretically, you can use a non-separator terminated expression, but that will match the website as well many other sites and paths, i.e.:
example.com
Matches:
http ://example.com/
http ://subdomain.example.com/
http ://example.com.evil.com/
http ://evil.com/pages/example.com.php
For global blocks this might not be as much of a problem (though you may inadvertently block stuff unintentionally), but it is definitely not a good practice for allowing/categorizing sites.
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!