Page 1 of 1

Allow GoogleApps, but not Google

Posted: Sun Jul 10, 2011 9:38 am
by questionmark
I want to allow for example "www.google.com/calendar", but not "www.google.com" at all.
Is this possible?

Re: Allow GoogleApps, but not Google

Posted: Sun Jul 10, 2011 2:33 pm
by Giorgio Maone
You can try ABE, by putting the following rule in your USER ruleset:

Code: Select all

# Accept any request to www.google.com/calendar and accounts
Site www.google.com/calendar/ https://www.google.com/accounts/
Accept
# Accept any request from www.google.com/calendar and accounts
Site *
Accept from www.google.com/calendar https://www.google.com/accounts/
# Prevent JavaScript from running on any page from www.google.com
Site www.google.com
Sandbox
Furthermore, if you wanna be more drastic, by replacing "Sandbox" with "Deny" on the last line you will effectively block any request to http://www.google.com/* (you won't even be able to open the search engine page) unless it's from/to http://www.google.com/calendar and its "children".

Re: Allow GoogleApps, but not Google

Posted: Sun Jul 10, 2011 4:54 pm
by questionmark
Thank you Giorgio, I will give it a try.
But isn't there no way to allow those adresses be added to the positive list of noscript?