Thanks.

It's OK, but you can collapse google.* and *.google.* into .google.*, so it becomesCaptainUberCool wrote:Just a quick question with wildcards. would this be a legitimate rule?
Site google.* *.google.*
Accept from google.* *.google.*
Deny
or would i have to specify the TLDs separately?
Code: Select all
Site .google.*
Accept from .google.*
Deny
Yes it would.CaptainUberCool wrote:and .google.* would still include a domain that doesn't contain www.? ie just google.com or instance.
Code: Select all
# block google except on google
Site .google.*
Accept from .google.*
Deny
# block youtube
Site .youtube.*
Accept from .youtube.*
Deny
Code: Select all
# block google except on google
Site .google.* .gmodules.*
Accept from .google.*
Deny
# block youtube
Site .youtube.* .google.*
Accept from .youtube.*
Deny
Code: Select all
Site .google.*
Accept from .google.*
Deny INCLUSION(SCRIPT, OBJ)
Code: Select all
Site .google.*
Accept from .google.* .youtube.com .gmodules.com
Deny INCLUSION(SCRIPT, OBJ)
Code: Select all
Site .google.com/recaptcha* // i added these two lines.
Accept from ALL
Site .google.*
Accept from .google.* .youtube.* .gmodules.*
Deny INCLUSION(SCRIPT, OBJ)
Code: Select all
Site http://ad.doubleclick.net/adj/ars.dart/
Accept from arstechnica.com *.arstechnica.com
Deny
Site doubleclick.net *.doubleclick.net
Deny
Code: Select all
Site http://ad.doubleclick.net/adj/ars.dart/
Accept from arstechnica.com *.arstechnica.com
Deny
It's fine, provided that "// i added these two lines" is not really there.Guest wrote: i noticed the recaptchas on certain sites broke, so i amended the google rule. is it still valid?Code: Select all
Site .google.com/recaptcha* // i added these two lines. Accept from ALL Site .google.* Accept from .google.* .youtube.* .gmodules.* Deny INCLUSION(SCRIPT, OBJ)
Yes. However Ars Technica's rules blocks any request (not just scripts and active content) for doubleclick.com.Guest wrote: secondly, there is an article here:
http://arstechnica.com/business/guides/ ... acking.ars
that states a rule like this is necessary.
wouldn't:Code: Select all
Site http://ad.doubleclick.net/adj/ars.dart/ Accept from arstechnica.com *.arstechnica.com Deny Site doubleclick.net *.doubleclick.net Deny
be suffice?Code: Select all
Site http://ad.doubleclick.net/adj/ars.dart/ Accept from arstechnica.com *.arstechnica.com Deny
Code: Select all
Site http://ad.doubleclick.net/adj/ars.dart/
Accept from .arstechnica.com
Site .doubleclick.net
Deny
Giorgio, it seems that I'm having a mental block right now. I'm not able to fully understand the difference between .google.com and *.google.comGiorgio Maone wrote: .google.com matches both http://www.google.com and google.com, while *.google.com matches all the subdomains but NOT google.com, and google.com matches only google.com.
Ah - thank you. This makes it clearer. (I told you I had a mental blockdhouwn wrote:It's an extension to the common globbing mechanism.
- .example.com matches example.com and bla.example.com
- *.example.com just matches bla.example.com