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

Want to block subdomain, but...

I want to try and block a sub-domain on a site, but not the domain name itself, mostly trying to block ads from the site.  

What would be the best way to also block the sub-domain that has multiple subs, but have a common sub name?  

For example, the domain has multiple subs such as cont-dc-1.domain.com, cont-dc-2.domain.com, etc.  They will be picked at random and then advertise the ads.

So I really would like to block cont*.domain.com, or cont-dc*.domain.com.

How would I be able to apply a filter?

^https?://[A-Za-z0-9.-]*domain.com/   ?


This thread was automatically locked due to age.
Parents
  • Wouldn't this (^https?://[A-Za-z0-9\.-]*\.domain\.com/) block all sub-domains on this domain though?  There are some that are legitimate.  I don't know every sub-domain that needs to be blocked, but they do carry commonalities like I had put in my examples.

    Thanks for the responses.  [:)]
Reply
  • Wouldn't this (^https?://[A-Za-z0-9\.-]*\.domain\.com/) block all sub-domains on this domain though?  There are some that are legitimate.  I don't know every sub-domain that needs to be blocked, but they do carry commonalities like I had put in my examples.

    Thanks for the responses.  [:)]
Children
No Data