- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-15-2011 05:44 AM
Hi all,
I have a question relating to wildcards in a Custom URL Category on PA-500 - 4.1.0
I have the following entry in my custom URL category
*.centos.org
and I'm finding that I'm getting a match with the following URL (and many others)
mirror.ox.ac.uk/sites/mirror.centos.org/5.7/updates/i386/RPMS/kernel-2.6.18-274.7.1.el5.i686.rpm
Is this correct please? What I intended to match on was server-x.centos.org/, server-y.centos.org etc.
Any info would be appreciated!
Many Thanks,
Dave
11-22-2011 06:09 PM
Hi Dave,
Oskar (in the post before yours) is correct - currently the wildcard will look for the specified pattern in both the host as well as the path, and this behavior should be the same across all releases. We hope to address the ability to limit patterns to either the host or the path in an upcoming release, so stay tuned.
Thanks,
Doris
11-17-2011 11:42 AM
Hi
*.centos.org
will match everything that comes in as <xyz>.centos.com
so you will see multiple matches - as you do.
If however, you'd like to be able to match ONLY and not any of the others
server-x.centos.org/, server-y.centos.org
then you may have to specify the URLs explicitly
HTH
11-17-2011 02:00 PM
Thanks for your reply!
My issue is that *.centos.org matches URLs that contain this string anywhere, rather than just the host name portion of the URL.
Regards,
Dave
11-17-2011 02:30 PM
Hi Dave,
In the example you provided:
*.centos.org
and I'm finding that I'm getting a match with the following URL (and many others)
mirror.ox.ac.uk/sites/mirror.centos.org/5.7/updates/i386/RPMS/kernel-2.6.18-274.7.1.el5.i686.rpm
this is expected behavior, since the wildcard matches anything before ".centos.org" The example URL you provided matched because you have "mirror.ox.ac.uk/sites/mirror" preceding the pattern you defined. Is your intention to only match when the URL only has one token preceding ".centos.org"? For example, match "abc.centos.org" and not "def.abc.centos.org"?
--Doris
11-17-2011 11:45 PM
Hi Doris,
Thanks - it's my intention to match any host name ending in .centos.org
For example,
server.centos.org/blah/blah/
other.server.centos.org/blah/blah/blah/
but not
mirror.ox.ac.uk/sites/mirror.centos.org/5.7/updates/i386/RPMS/kernel-2.6.18-274.7.1.el5.i686.rpm
Thanks
Dave
11-18-2011 01:56 AM
OK, so the wildcard in the URL-filter makes no distinction between URI-path and the host portion? Is that true in all releases?
11-22-2011 04:21 AM
Does anybody know if this is the case please?
11-22-2011 06:09 PM
Hi Dave,
Oskar (in the post before yours) is correct - currently the wildcard will look for the specified pattern in both the host as well as the path, and this behavior should be the same across all releases. We hope to address the ability to limit patterns to either the host or the path in an upcoming release, so stay tuned.
Thanks,
Doris
11-23-2011 01:53 AM
OK, thanks for the info. Hope this does change in a future release. I bet 99.9% of us using the feature in question are under the assumption that the pattern is matched against the host portion of the URL.
11-23-2011 02:04 AM
Thank you both for your help!
Yes this would be a most useful enhancement and would bring it in line with how I thought it worked!
Thanks,
Dave
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!