הפניה לתחביר של UrlList

במדריך הזה מוסבר על התחביר של UrlList Secure Web Proxy.

UrlList מאפשר ליצור הרבה רשומות התאמה שאפשר לעשות בהן שימוש חוזר בכמה כללים.

UrlList התחביר תומך בהתאמה של דומיינים באופן מלא או לפי סיומת, ושל כתובות URL עם נתיב מלא ללא פרמטרים או עם נתיב קידומת.

תווים כלליים לחיפוש שנתמכים

UrlList תומך בתו הכללי לחיפוש * כוכבית, שאפשר להשתמש בו כקידומת כדי להתאים לתת-דומיינים חלקיים או לנתיבים חלקיים.

כשמספקים דומיינים חלקיים, UrlList מתאים רק לטוקנים מלאים של תת-דומיין. אם לא מציינים מפריד נתיבים, התבנית UrlList תתאים לכל נתיב. לדוגמה, אם תספקו את example.com, אז UrlList תואם ל-example.com/*, כולל כל הנתיבים בדומיין.

איך UrlList מפרש רשומות

‫Secure Web Proxy משתמש בתבניות UrlList שאתם מספקים כדי להתאים לכתובות URL, ואז קובע אם כתובת ה-URL מותרת או אסורה.

UrlList מפרש את הערכים לפי ההגדרות הבאות:

  • רשומות שמכילות נקודה (.) וקו נטוי קדימה (/) חייבות להיות כתובות URL תקינות. אפשר לכלול תווים כלליים לחיפוש של תת-דומיין ונתיב. הטוקן שמשמאל לתו / הראשון מתפרש כדומיין ברמה העליונה, כמו .com ב-google.com/news.

  • רשומות שמכילות נקודה (.) ולא מכילות לוכסן (/) מתפרשות כדומיינים. אפשר לכלול את התו הכללי לחיפוש של תת-הדומיין. הטוקן הכי ימני במקרה הזה מפורש כדומיין ברמה העליונה, כמו .xyz ב-abc.xyz.

  • כל שאר הערכים לא תקינים.

כשדפוס UrlList מותאם לערכים שמכילים קו נטוי (/), כמו ב-request.url(), הדפוסים מפורשים כמו שמוסבר למעלה. עם זאת, כשמתבצעת התאמה של תבנית UrlList לערכים בלי /, כמו ב-host(), רק החלק של הדומיין בתבנית מותאם.

דוגמאות להתאמת תבניות

בטבלה הבאה מוצגות דוגמאות לתבניות, דוגמאות לכתובות URL שתואמות לכל תבנית ודוגמאות לכתובות URL שלא תואמות לכל תבנית.

דוגמת קוד התאמות לא מתאים
*example.com

example.com/

server.example.com/

sample.server.example.com/

example.com/path

example.com/path?q=query

example.com/path/subpath

sample.server.example.com/path/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

*.example.com

server.example.com/

sample.server.example.com/

sample.server.example.com/path/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

example.com/

example.com/path

example.com/path/subpath

example.com

example.com/

example.com/path

example.com/path/subpath

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

server.example.com/

sample.server.example.com/

sample.server.example.com/path/

*server.example.com

server.example.com/

sample.server.example.com/path

sample.server.example.com/path/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

example.com/

example.com/path

example.com/path/subpath

*example.com/

example.com/

server.example.com/

sample.server.example.com/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

example.com/path/

example.com/path/subpath

sample.server.example.com/path/

*example.com/path*

example.com/path

example.com/path/subpath

sample.server.example.com/path/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

example.com/

server.example.com/

sample.server.com/

*example.com/path/*

example.com/path/subpath

sample.server.example.com/path/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

example.com/

server.example.com/

sample.server.example.com/

example.com/path

*example.com/path/ sample.server.example.com/path/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

example.com/

sample.example.com/

sample.server.example.com/

example.com/path

example.com/path/subpath

example.com/ example.com/

myexample.com/

example.com.bad.com/

us13.altostrat.com/go/example.com/path

www.google.com/search?q=example.com

server.example.com/

sample.server.example.com/

example.com/path

example.com/path/subpath

sample.server.example.com/path/