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

URL Blocking Syntax ...

Hi Experts,

is there any Example Syntax to block an URL or a group of a patial Domainname? I have the Problem, that I want block some Domainnames and all combinations of the Domainname.

I used the following Syntax: \.domainname\. , but unfortunately, I see that the URL without the prefix "www" works perfectly. :-( 

I want block also all cominations of "abcd" in any position of the URL ... Is this possible?

I hope you can help me,
best regards and thanks
Michael


This thread was automatically locked due to age.
Parents
  • Hi Michael,

    in v6 you have to use regular expressions. If you want to block combinitions of domainsnames like www.example.domain and example.domain type

    example\.

    So it stops working for both, www. and without.

    Blocking all sites with a special substring in theri URL? Then write it down like "skype". Every site is blocked with "skype" in their URL.

    In v7 you don't need to enter URLs or substrings in black- or whitelist by using regular expressions. If you want to block a TLD then enter it like .de or all websites containing a special string like "skype" then enter it but take care. Here it works fine with v7 but if we want to visit some search results or threads we get the astaros screen because blocked by blacklist *g*

    Hoping to help, Steffen


  • Blocking all sites with a special substring in theri URL? Then write it down like "skype". Every site is blocked with "skype" in their URL.

    In v7 you don't need to enter URLs or substrings in black- or whitelist by using regular expressions. If you want to block a TLD then enter it like .de or all websites containing a special string like "skype" then enter it but take care. Here it works fine with v7 but if we want to visit some search results or threads we get the astaros screen because blocked by blacklist *g*



    I too am trying to block sites whose URLs contain a specific word. I'm not clear from what you've said exactly what I should enter in my block list. I'm interpreting this to mean that in the block list I can just enter the word I want to block,with no additional symbols or syntax or domain. This does not seem to work in v 7.305. Am I missing something?
  • With V7, if you enter plane, you will block airplane.com and planet.net.  You don't need to be any more specific.  In fact if you wanted to block everything at .de, you could just enter that, but you also would block www.definition.com.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • so how can you block a domain type in my case .ru without blocking sites that begin with ru? like rush.com?
  • so how can you block a domain type in my case .ru without blocking sites that begin with ru? like rush.com?


    what happens if you try .*\.ru (if I'm right this should be "*.ru")
Reply Children
  • Hi Ckrebs,

    for blocking try .ru/. I think it should work. A question by the way: Will * in blocking syntax work with v7?

    Regards, Steffen
  • Hi Ckrebs,

    for blocking try .ru/. I think it should work. A question by the way: Will * in blocking syntax work with v7?

    Regards, Steffen


    Thanks this is the correct syntax, it makes sense to me now and i don't know why i didnt think of it before, basically what .ru/ does is look for any address that contains that string, so this will block anything with the .ru root since they all end .ru/, like "http://www.google.com/ru" in regards to your * question, the way the v7 black list works as far as i can tell is that the wildcards are assumed, which is why plain old .ru will block "www.rush.com".