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

Strange behaviour of Url to Block

Hello, 
in "Url to block" I have this entry: twitter.com. I know, I should modify a little the regex string because in this way it wuold be blocked also "www.aaaa.com/twitter.com", but.. I have noticed that also replacing the "." with the "-" astaro blocks the web site. If I try to access to "www.aaaa.com/twitter-com" astaro shows blocked content page! Is it normal?


This thread was automatically locked due to age.
  • Here is what I have tried in URL to block I added twitter.com and it is blocked as expected, but when I change the to . to - in the URL to block I can open twitter.com and it isn't block.
    v 7.508
  • Here is what I have tried in URL to block I added twitter.com and it is blocked as expected, but when I change the to . to - in the URL to block I can open twitter.com and it isn't block.
    v 7.508


    Hello, 
    perhaps I didn't describe clearly the issue [:)]

    In the url to block there is always "twitter.com" (I don't change here "." in "-"). In this case: 



    Anyway I change the url to block with: https?://[A-Za-z0-9\-\.]+\.twitter.com/ but I am curious to know if what I described is a bug or not. [:D]


    bye
    eclipse79

    EDIT: I just tested the regex here http://www.quanetic.com/Regex. It is not a bug... I have some difficulties with regex! The "." (dot) can be replace with everything, so also www.twitterkcom matches the pattern
  • Thanks for finding that, eclipse79.  I didn't realize that WebAdmin was pure REGEX - I was misled by the way Astaro pre-loads, for example, "windowsupdate.com" instead of "windowsupdate\.com" in an Exception.


    I'll need to go back and change, for example, "twitter.com" to "twitter\.com" in several places.

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