Facebook, whitelist and FB 3rd party app question
-
- Posts: 4
- Joined: Thu Feb 25, 2010 8:14 pm
Facebook, whitelist and FB 3rd party app question
If I recall correctly, 3rd party apps in Facebook are allowed to use Javascript, and Facebook does nothing to verify who wrote that code. What I would like to do is use the NoScript whitelist to allow Javascript written by Facebook to run, while not allowing Javascript from 3rd party developers.
If I add an exception to facebook.com, would this accomplish my goal, or is there more to it than that? Also, do I need to add an exception to fbcdn.com for this to work?
If I add an exception to facebook.com, would this accomplish my goal, or is there more to it than that? Also, do I need to add an exception to fbcdn.com for this to work?
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Facebook, whitelist and FB 3rd party app question
If you allow facebook.com and fbcdn.net, you will let Facebook run its script but not the 3rd party (which I understand is your goal).crashsystems wrote:If I add an exception to facebook.com, would this accomplish my goal, or is there more to it than that? Also, do I need to add an exception to fbcdn.com for this to work?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
-
- Posts: 4
- Joined: Thu Feb 25, 2010 8:14 pm
Re: Facebook, whitelist and FB 3rd party app question
I thought that allowing those two things might do it, but I was not sure, as I'm not very familiar with how Facebook goes about grabbing the code for 3rd party apps to display to the user.
Anyways, thanks for the quick reply.
Anyways, thanks for the quick reply.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8
-
- Posts: 4
- Joined: Thu Feb 25, 2010 8:14 pm
Re: Facebook, whitelist and FB 3rd party app question
With recent announcements(http://www.readwriteweb.com/archives/fa ... zation.php) from Facebook, it looks like a lot more sites are going to be running Facebook Javascript on their pages. With that in mind, is it possible to allow scripts from facebook.com and fbcdn.com, but only when they are loading in a facebook.com page?
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100415 Ubuntu/10.04 (lucid) Firefox/3.6.3
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Facebook, whitelist and FB 3rd party app question
Allow both in NoScript, then add the following ABE to the NoScript Options|Advanced|ABE USER rule:
Code: Select all
Site .fbcdn.net
Accept from .facebook.com .fbcdn.net
Deny
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
- GµårÐïåñ
- Lieutenant Colonel
- Posts: 3369
- Joined: Fri Mar 20, 2009 5:19 am
- Location: PST - USA
- Contact:
Re: Facebook, whitelist and FB 3rd party app question
Giorgio, would DENY in the end be redundant? Just thinking embedded code that is pulling from another source MIGHT creep through otherwise, no? Just thinking out loud.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Facebook, whitelist and FB 3rd party app question
Sorry, my fault. The closing deny MUST be there, and I forgot to type it.GµårÐïåñ wrote:Giorgio, would DENY in the end be redundant?
Fixed in the original post, thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
-
- Posts: 4
- Joined: Thu Feb 25, 2010 8:14 pm
Re: Facebook, whitelist and FB 3rd party app question
I'm getting the following error:
Here is paste of the entire contents:
Also, would this work to also block facebook.com scripts on non-facebook sites, or is this an example of the type of rule I'd need to do separately for facebook.com?
Code: Select all
line 3:1 no viable alternative at character 'l'
Code: Select all
# User-defined rules. Feel free to experiment here.
Site .fbcdn.net
Allow from .facebook.com .fbcdn.net
Deny
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100415 Ubuntu/10.04 (lucid) Firefox/3.6.3
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Facebook, whitelist and FB 3rd party app question
Sorry, my fault again (I badly need some extra sleep): it should be "Accept", not "Allow".
Most if not all Facebook script are served from fbcdn.net for performance.
You can put "facebook.com" in the same "Site" clause if you want, but you won't be able to link to Facebook from other sites.
This will eventually be improved (see http://forums.informaction.com/viewtopi ... 66&e=16966 )
Most if not all Facebook script are served from fbcdn.net for performance.
You can put "facebook.com" in the same "Site" clause if you want, but you won't be able to link to Facebook from other sites.
This will eventually be improved (see http://forums.informaction.com/viewtopi ... 66&e=16966 )
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
- GµårÐïåñ
- Lieutenant Colonel
- Posts: 3369
- Joined: Fri Mar 20, 2009 5:19 am
- Location: PST - USA
- Contact:
Re: Facebook, whitelist and FB 3rd party app question
Its ok boss, you work too hard and as awesome as you are, you are still human, so I am glad I could bring attention to it and even I didn't comment on the Allow because frankly, I was embarrassed that maybe the syntax had changed in my absence and I didn't want to come across rude and ignorant, so I kept that to myself but the DENY hit me right away. We are all here for this very reason, so we can lend a hand, so get some rest, PLEASE!
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3