This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to block a specified URL

Hi,

Following are three URL from LEGO website:

"www.lego.com/.../videos"

"www.lego.com/.../sets"

"www.lego.com/.../games"

if I need to block the game URL only , how to set the Regular Expressions?

I already tried "^https?://[A-Za-z0-9.-]*\.lego\.com/en-us/kids/games/" and "\.com/en-us/kids/games/", but it doesn't work.

Thanks!



This thread was automatically locked due to age.
  • Try:

    "^https?://www\.lego\.com/[\/A-Za-z0-9.-]*/games/

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Bob,

    It still can be passed. Following is the log.

    2018:11:27-10:08:30  httpproxy[20080]: id="0001" severity="info" sys="SecureWeb" sub="http" name="http access" action="pass" method="CONNECT" srcip="10.77.192.90" dstip="171.20.53.203" user="" ad_domain="" statuscode="200" cached="0" profile="REF_DefaultHTTPProfile (Default Web Filter Profile)" filteraction="REF_DefaultHTTPCFFAction (Default content filter action)" size="2729" request="0xdea40000" url="https://lego.com/" referer="" error="" authtime="0" dnstime="2" cattime="109" avscantime="0" fullreqtime="705495" device="0" auth="0" ua="" exceptions="" category="112" reputation="trusted" categoryname="Entertainment"

     

    2018:11:27-10:08:31  httpproxy[20080]: id="0001" severity="info" sys="SecureWeb" sub="http" name="http access" action="pass" method="CONNECT" srcip="10.77.192.90" dstip="171.20.53.203" user="" ad_domain="" statuscode="200" cached="0" profile="REF_DefaultHTTPProfile (Default Web Filter Profile)" filteraction="REF_DefaultHTTPCFFAction (Default content filter action)" size="2595" request="0xe142e800" url="https://lego.com/" referer="" error="" authtime="0" dnstime="2" cattime="141" avscantime="0" fullreqtime="702335" device="0" auth="0" ua="" exceptions="" category="112" reputation="trusted" categoryname="Entertainment"
     
    2018:11:27-10:08:31  httpproxy[20080]: id="0001" severity="info" sys="SecureWeb" sub="http" name="http access" action="pass" method="CONNECT" srcip="10.77.192.90" dstip="171.20.53.203" user="" ad_domain="" statuscode="200" cached="0" profile="REF_DefaultHTTPProfile (Default Web Filter Profile)" filteraction="REF_DefaultHTTPCFFAction (Default content filter action)" size="2804" request="0xe1905000" url="https://lego.com/" referer="" error="" authtime="0" dnstime="3" cattime="81" avscantime="0" fullreqtime="690780" device="0" auth="0" ua="" exceptions="" category="112" reputation="trusted" categoryname="Entertainment"
  • You said you only wanted to block games.  It appears from the log that "games" were not attempted.

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Bob,

    We are correct! I want to block the game URL only. 

    The log data comes from Lego's website(www.lego.com) and click the game icon.

    thanks a lot!