[Resolved] Only allow a site when connected to it?

Ask for help about NoScript, no registration needed to post
Mr.Gump
Posts: 10
Joined: Tue Sep 08, 2009 4:47 am

[Resolved] Only allow a site when connected to it?

Post by Mr.Gump »

I would like to allow Facebook but only when I am actually using the main website and I do not want to allow it any other time. Is this possible?
Last edited by therube on Mon Sep 26, 2011 3:02 pm, edited 1 time in total.
Reason: Changed subject from: Can NS be taught to only allow a site when connected to it?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
User avatar
therube
Ambassador
Posts: 7924
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Can NS be taught to only allow a site when connected to

Post by therube »

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20110916 Firefox/7.0 SeaMonkey/2.4
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3365
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Can NS be taught to only allow a site when connected to

Post by GµårÐïåñ »

First off, this might be a better to look for your immediate needs: FAQ 8.11 and more specifically the rule that you can place under ABE User section

Code: Select all

# facebook.com containment rule
# This rule allows Facebook scripts objects and frames to be included only
# from Facebook pages and apps
Site .facebook.com .fbcdn.net .facebook.net
Accept from .facebook.com .fbcdn.net .facebook.net
Deny INCLUSION
and if you play games, you would add them to the end of the accept from line as follows, this can get complicated on some games, so make sure you want to do this, and have the time to invest:

Code: Select all

# facebook.com containment rule
# This rule allows Facebook scripts objects and frames to be included only
# from Facebook pages and apps
Site .facebook.com .fbcdn.net .facebook.net
Accept from .facebook.com .fbcdn.net .facebook.net .mafiawars.com .eamobile.com
Deny INCLUSION
In this case Mafia Wars was added as well as EA but you often need to add other ones like .zynga for the resources, images and scripts, and the fact that often the games are setup as facebook.mafiawars.zynga.com and run inside iframe at FB so they need to be allowed to work. Anyway, good luck.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/6.9 (Windows NT 6.9; rv:6.9) Gecko/69696969 Firefox/6.9
Mr.Gump
Posts: 10
Joined: Tue Sep 08, 2009 4:47 am

Re: Can NS be taught to only allow a site when connected to

Post by Mr.Gump »

thank you it's all working now :mrgreen:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Post Reply