Allow GoogleApps, but not Google

Ask for help about NoScript, no registration needed to post
questionmark

Allow GoogleApps, but not Google

Post by questionmark »

I want to allow for example "www.google.com/calendar", but not "www.google.com" at all.
Is this possible?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow GoogleApps, but not Google

Post 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".
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
questionmark

Re: Allow GoogleApps, but not Google

Post 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?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Post Reply