nice paper on FireFox memory usage reduction

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Sun Feb 5 12:31:40 UTC 2012


On Sat, Feb 04, 2012 at 11:42:12PM -0500, D. Hugh Redelmeier wrote

> For example 36MB of ram is used by a compartment for
> www.facebook.com/;lugins/like...
> I don't even use facebook!  Its caused by those nasty "like" buttons.
> I'd like a non-rude way to block this kind of junk.  /etc/hosts
> entries seem rude.

  Hosts is not effective against a gazillion different domain names.
Block FB with the following ranges with iptables...

66.220.144.0/20  66.220.144.0 - 66.220.159.255
69.63.176.0/20   69.63.176.0 - 69.63.191.255
69.171.224.0/19  69.171.224.0 - 69.171.255.255
74.119.76.0/22   74.119.76.0 - 74.119.79.255
173.252.64.0/18 173.252.64.0 - 173.252.127.255
204.15.20.0/22  204.15.20.0 - 204.15.23.255

  Incoming should be sufficient, but since this is my "paranoia plus"
ruleset, it blocks coming and going.  Here are 3 fragments of the
ruleset...

-A INPUT -s 66.220.144.0/20 -j FECESBOOK
-A INPUT -s 69.63.176.0/20 -j FECESBOOK
-A INPUT -s 69.171.224.0/19 -j FECESBOOK
-A INPUT -s 74.119.76.0/22 -j FECESBOOK
-A INPUT -s 173.252.64.0/18 -j FECESBOOK
-A INPUT -s 204.15.20.0/22 -j FECESBOOK

-A OUTPUT -s 66.220.144.0/20 -j FECESBOOK
-A OUTPUT -s 69.63.176.0/20 -j FECESBOOK
-A OUTPUT -s 69.171.224.0/19 -j FECESBOOK
-A OUTPUT -s 74.119.76.0/22 -j FECESBOOK
-A OUTPUT -s 173.252.64.0/18 -j FECESBOOK
-A OUTPUT -s 204.15.20.0/22 -j FECESBOOK

-A FECESBOOK -j LOG --log-prefix "FECESBOOK:" --log-level 6
-A FECESBOOK -j DROP

  Be prepared to see a lot of panels in the webpages with

============================
Unable to connect
Firefox can't establish a connection to the server at www.facebook.com.
============================

  The webpages still seem to load just as fast, if not faster.  For lots
of laughter+stupidity, see http://www.lamebook.com/ (warning NSFW).  All
the fun of reading Facebook, without having them track you.  I wouldn't
be caught dead on FB.

-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list