Allow FB scripts only on facebook.com?

Ask for help about NoScript, no registration needed to post
gardanni
Posts: 2
Joined: Mon Jan 13, 2025 12:48 pm

Allow FB scripts only on facebook.com?

Post by gardanni »

I occasionally check Facebook, but certainly don't want Facebook tracking my general use of the internet. Is there a way to configure NoScript so that Facebook scripts can run when loading pages from facebook.com but are blocked when loading anything else?

Many thanks.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
barbaz
Senior Member
Posts: 10981
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow FB scripts only on facebook.com?

Post by barbaz »

When browsing Facebook, set Facebook sites to CUSTOM, then:
- make sure the permissions listed for "ANY SITE" are what you want on non-Facebook sites;
- change the "ANY SITE" dropdown to "...facebook.com" and individually allow the desired "additional" site-specific permissions there.

Note that NoScript is not an anti-tracking tool. You might consider adding something like uBlock Origin alongside NoScript, and also looking into Firefox Containers, to more comprehensively get the type of privacy protection you seem to be seeking.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
gardanni
Posts: 2
Joined: Mon Jan 13, 2025 12:48 pm

Re: Allow FB scripts only on facebook.com?

Post by gardanni »

Thank you for the technical instruction! I never explored the "custom" settings before - I am not very technical, and thought that would be beyond me! But the config was easy, and I appreciate that you pointed it out.

Thanks also for the broader contextual understanding... I will look at that blocker and the container setting of firefox.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
colorbars
Posts: 1
Joined: Fri Feb 07, 2025 11:19 am

Re: Allow FB scripts only on facebook.com?

Post by colorbars »

I recently started using this feature but I've run into a problem where the single domain set under custom reverts to 'any site'. I haven't been able to pin down a specific cause or timing of when that happens. Any idea how to keep that from happening?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
barbaz
Senior Member
Posts: 10981
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow FB scripts only on facebook.com?

Post by barbaz »

colorbars wrote: Fri Feb 07, 2025 11:26 am I recently started using this feature but I've run into a problem where the single domain set under custom reverts to 'any site'. I haven't been able to pin down a specific cause or timing of when that happens. Any idea how to keep that from happening?
That is not a setting, it's a selector for which permissions to display/configure. Your configured custom permissions should still be there and should show if you select the single domain.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Post Reply