Block Google+1 (Google Plus One) in sites

Discussions about the Application Boundaries Enforcer (ABE) module
Benning
Posts: 4
Joined: Thu Sep 22, 2011 1:27 am

Block Google+1 (Google Plus One) in sites

Post by Benning »

Hello,

I'm looking for a way to block the "+1" button of Google in all pages except .google.com with ABE.

I have searched the forums and didn't find the answer that I'm looking for :(. Please excuse me if this was already answered.

Thanks in advance and greetins for Argentina.
Mozilla/5.0 (Windows; U; Windows NT 6.1; es-AR; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Block Google+1 (Google Plus One) in sites

Post by al_9x »

Site apis.google.com/js/plusone.js
Accept INC from .google.com
Deny INC
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
Benning
Posts: 4
Joined: Thu Sep 22, 2011 1:27 am

Re: Block Google+1 (Google Plus One) in sites

Post by Benning »

Thank you so much, it works perfectly.

If i'm logged in gmail (Google Acount) and I visit site1.com... With this ABE rule, i'm preventing my data for being send to google ?
Mozilla/5.0 (Windows; U; Windows NT 6.1; es-AR; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Block Google+1 (Google Plus One) in sites

Post by al_9x »

The rule as you can see is specific to the plus one script, it will prevent sites other than .google.com from loading it. You can modify it to block everything (or whatever) from .google.com if that's what you want, "Site .google.com"
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
donde
Posts: 2
Joined: Thu Dec 22, 2011 2:53 pm

Re: Block Google+1 (Google Plus One) in sites

Post by donde »

I came across this thread and I seem to be having a problem that's the opposite of what the original poster wants. I can only use the +1 button on the Google+ site and it doesn't work for me on any other site. I'm only having this problem in Aurora (v.11.02a). I'm a noob when it comes to ABE and/or any NS modifying so if you can help, please explain carefully. I tried to come up with some ABE lines that may work, but nothing has worked for me. So, any help would be appreciated! Thanks in advance.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0a2) Gecko/20120116 Firefox/11.0a2
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: Block Google+1 (Google Plus One) in sites

Post by Tom T. »

donde wrote:I came across this thread and I seem to be having a problem that's the opposite of what the original poster wants. I can only use the +1 button on the Google+ site and it doesn't work for me on any other site. I'm only having this problem in Aurora (v.11.02a). I'm a noob when it comes to ABE and/or any NS modifying so if you can help, please explain carefully. I tried to come up with some ABE lines that may work, but nothing has worked for me. So, any help would be appreciated! Thanks in advance.
If you wish to allow apis.google.com at all sites, no need for ABE. Just whitelist it.

If it's only the button that you want to allow *everywhere*, modify al_9x's rule as follows:

Code: Select all

Site apis.google.com/js/plusone.js
Accept INC 
The ALL (from all) is implied by the lack of anything after the Accept command, as well as by the lack of a Deny command.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25
Post Reply