ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Mayorov <fedex@bashnet.ru>
To: community@altlinux.ru
Subject: [Comm] Убийство баннеров в мозилле на уровне пользователя.
Date: Tue, 5 Nov 2002 23:28:23 +0500
Message-ID: <200211052328.23143.fedex@bashnet.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 2823 bytes --]

Многие любители squid и firewall конечно -же скажут "фи!", но есть и те, кому 
недосуг ставить firewall и плясать с ним. Например мне - я не админ, не 
программер, но linuч крутится у меня уже года как три....
Так вот - решение для простого пользователя по запрещению мозилле показывать 
баннеры.
Если кто заходил на mozdev.org, то видел там приблуду, называемую bannerblind, 
сделанную коряво и в лучшем windows-way, а именно - она не запрещает загрузку 
баннеров, она просто ЗАКРЫВАЕТ уже ЗАГРУЖЕННЫЕ баннеры. Есть два более 
изящных решения на уровне пользователя.
Итак:
шаг 1 - заходим в свойства мозиллы, privacy & security, выбираем Images, 
выбираем в Image Acceptance Policy пункт Acept images that come from the 
origination server only - т.е. разрешаем загружать картинки только с 
просматриваемого сервера. Таким образом убиваем процентов 20-30 баннеров.
шаг 2 - наиболее интересный - запрещаем мозилле отображать картинки наиболее 
часто встречающихся баннерных размеров (400 на сколько-то и еще целая куча). 
Этого можно легко добиться при помощи файла userContent.css, помещенного в 
папку chrome домашнего каталога мозиллы.
В моем случае этот файл и путь к нему выглядят так:
file:/home/alex/.mozilla/default/4rvwow2b.slt/chrome/userContent.css
и этот файл залинкован еще в:
file:/home/alex/.mozilla/default/4rvwow2b.slt/US/chrome/userContent.css

шаг 3 - если все -таки какие либо из баннеров проскочили этот заслон, то на 
появившемся баннере щелкаем правой клавишей мыши и выбираем Block Images from 
this server (не знаю, как это переведено в русской версии).
Для особо ленивых прилагаю файл cookperm.txt, где описано, с каких сайтов НЕ 
загружать картинки. Обратите внимание на то, что данный файл (cookperm.txt) 
является результатом моих личных предпочтений!
вот где он у меня лежит:
file:/home/alex/.mozilla/default/4rvwow2b.slt/cookperm.txt

Внимание! Описанный способ не является идеальным для админов больших сетей, 
однако простым пользователям помогает путем несложных действий добиться 
практически полного запрета баннеров!
Я буду рад ответить на любые вопросы, связанные с описанным способом.
Помните, что установка bannerblind не уменьшает трафик, а только закрывает 
баннеры.
Кроме того, есть сведения, что правка файла стилей пользователя (User CSS) в 
некоторых других браузерах (например Galeon) тоже помогает избавиться от 
баннеров при помощи размера.
Кроме того, данный способ не всегда работает с некорректно сверстанными 
страницами, такими, где тег <IMG> не указывает на высоту и ширину 
изображения.
Однако, (пример) после проведения указанных действий, объем загружаемой 
информации на странице www.netoskope.ru (точно название не помню), упал с 450 
килобайт до 90. Многие сайты грузятся ГОРАЗДО быстрее, что в общем то не 
только приятней, но и дешевле.

С уважением,
Александр

[-- Attachment #2: userContent.css --]
[-- Type: text/css, Size: 6554 bytes --]

/*
 * This file can be used to apply a style to all web pages you view
 * Rules without !important are overruled by author rules if the
 * author sets any.  Rules with !important overrule author rules.
 */

/*
 * example: turn off "blink" element blinking
 *
 * blink { text-decoration: none ! important; }
 *
 */

/*
 * example: give all tables a 2px border
 *
 * table { border: 2px solid; }
 */
 *
/* 
 * For more examples see http://www.mozilla.org/unix/customizing.html
 */

img[width="468"][height="60"] { display: none; } embed[width="468"][height="60"] { display: none; } iframe[width="468"][height="60"] { display: none; } table[width="468"][height="60"] { display: none; }

img[width="468"][height="80"] { display: none; } embed[width="468"][height="80"] { display: none; } iframe[width="468"][height="80"] { display: none; }

img[width="234"][height="60"] { display: none; } embed[width="234"][height="60"] { display: none; } iframe[width="234"][height="60"] { display: none; }

img[width="125"][height="60"] { display: none; } embed[width="125"][height="60"] { display: none; } iframe[width="125"][height="60"] { display: none; }

img[width="125"][height="600"] { display: none; } embed[width="125"][height="600"] { display: none; } iframe[width="125"][height="600"] { display: none; }

img[width="425"][height="450"] { display: none; } embed[width="425"][height="450"] { display: none; } iframe[width="425"][height="450"] { display: none; }

img[width="300"][height="250"] { display: none; } embed[width="300"][height="250"] { display: none; } iframe[width="300"][height="250"] { display: none; }

img[width="468"][height="90"] { display: none; } embed[width="468"][height="90"] { display: none; } iframe[width="468"][height="90"] { display: none; }

img[width="240"][height="400"] { display: none; } embed[width="240"][height="400"] { display: none; } iframe[width="240"][height="400"] { display: none; }

img[width="336"][height="280"] { display: none; } embed[width="336"][height="280"] { display: none; } iframe[width="336"][height="280"] { display: none; }

img[width="160"][height="615"] { display: none; } embed[width="160"][height="615"] { display: none; } iframe[width="160"][height="615"] { display: none; }

img[width="728"][height="105"] { display: none; } embed[width="728"][height="105"] { display: none; } iframe[width="728"][height="105"] { display: none; }

img[width="148"][height="400"] { display: none; } embed[width="148"][height="400"] { display: none; } iframe[width="148"][height="400"] { display: none; }

img[width="120"][height="90"] { display: none; } embed[width="120"][height="90"] { display: none; } iframe[width="120"][height="90"] { display: none; }

img[width="160"][height="600"] { display: none; } embed[width="160"][height="600"] { display: none; } iframe[width="160"][height="600"] { display: none; }

img[width="450"][height="284"] { display: none; } embed[width="450"][height="284"] { display: none; } iframe[width="450"][height="284"] { display: none; }

img[width="125"][height="125"] { display: none; } embed[width="125"][height="125"] { display: none; } iframe[width="125"][height="125"] { display: none; }

img[width="125"][height="102"] { display: none; } embed[width="125"][height="102"] { display: none; } iframe[width="125"][height="102"] { display: none; }

img[width="80"][height="18"] { display: none; } embed[width="80"][height="18"] { display: none; } iframe[width="80"][height="18"] { display: none; }

img[width="123"][height="30"] { display: none; } embed[width="123"][height="30"] { display: none; } iframe[width="123"][height="30"] { display: none; }

img[width="200"][height="105"] { display: none; } embed[width="200"][height="105"] { display: none; } iframe[width="200"][height="105"] { display: none; }

img[width="150"][height="100"] { display: none; } embed[width="150"][height="100"] { display: none; } iframe[width="150"][height="100"] { display: none; }

img[width="134"][height="12"] { display: none; } embed[width="134"][height="12"] { display: none; } iframe[width="134"][height="12"] { display: none; }

img[width="125"][height="200"] { display: none; } embed[width="125"][height="200"] { display: none; } iframe[width="125"][height="200"] { display: none; }

img[width="380"][height="335"] { display: none; } embed[width="380"][height="335"] { display: none; } iframe[width="380"][height="335"] { display: none; }

img[width="280"][height="336"] { display: none; } embed[width="280"][height="336"] { display: none; } iframe[width="280"][height="336"] { display: none; }

img[width="230"][height="33"] { display: none; } embed[width="230"][height="33"] { display: none; } iframe[width="230"][height="33"] { display: none; }

img[width="120"][height="600"] { display: none; } embed[width="120"][height="600"] { display: none; } iframe[width="120"][height="600"] { display: none; }

img[width="728"][height="90"] { display: none; } embed[width="728"][height="90"] { display: none; } iframe[width="728"][height="90"] { display: none; }

img[width="120"][height="60"] { display: none; } embed[width="120"][height="60"] { display: none; } iframe[width="120"][height="60"] { display: none; }

img[width="120"][height="66"] { display: none; } embed[width="120"][height="66"] { display: none; } iframe[width="120"][height="66"] { display: none; }

img[width="180"][height="300"] { display: none; } embed[width="180"][height="300"] { display: none; } iframe[width="180"][height="300"] { display: none; }

img[width="125"][height="300"] { display: none; } embed[width="125"][height="300"] { display: none; } iframe[width="125"][height="300"] { display: none; }

img[width="135"][height="98"] { display: none; } embed[width="135"][height="98"] { display: none; } iframe[width="135"][height="98"] { display: none; }

img[width="125"][height="400"] { display: none; } embed[width="125"][height="400"] { display: none; } iframe[width="125"][height="400"] { display: none; }

img[width="88"][height="31"] { display: none; } embed[width="88"][height="31"] { display: none; } iframe[width="88"][height="31"] { display: none; }

img[width="300"][height="60"] { display: none; } embed[width="300"][height="60"] { display: none; } iframe[width="300"][height="60"] { display: none; }

img[width="250"][height="50"] { display: none; } embed[width="250"][height="50"] { display: none; } iframe[width="250"][height="50"] { display: none; }

img[width="100"][height="50"] { display: none; } embed[width="100"][height="50"] { display: none; } iframe[width="100"][height="50"] { display: none; }

[-- Attachment #3: cookperm.txt --]
[-- Type: text/plain, Size: 1424 bytes --]

# HTTP Permission File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This is a generated file!  Do not edit.

100.goodoo.ru	1F
100.lbe.ru	1F
100.smi.ru	1F
10e2.linkexchange.ru	1F
195.161.119.244	1F
ad.100.tbn.ru	1F
ad.bannerbank.ru	1F
ad.hotlog.ru	1F
ad1.lbe.ru	1F
ad12.lbn.ru	1F
ad4.bannerbank.ru	1F
ads.free-banners.com	1F
alenushka.hut.ru	1F
ar.atwola.com	1F
bashnet.ru	1F
best.integra.ru	1F
bs.yandex.ru	1F
counter.list.ru	1F
counter.rambler.ru	1F
dclk.imho.ru	1F
engine.awaps.net	1F
gen.gismeteo.ru:8080	1F
hg1.hitbox.com	1F
images.rambler.ru	1F
img.mail.ru	1F
inside.peterhost.ru	1F
kinoufa.ru	1F
m1.nedstatbasic.net	1F
mastak.rle.ru	1F
murphy.pp.ru	1F
r.gismeteo.ru	1F
r.mail.ru	1F
rb.fep.ru	1F
rb.rfn.ru	1F
rb2.design.ru	1F
rle.eltel.net	1F
rotabanner.adex.ru	1F
rotabanner.fep.ru	1F
sj1.lenta.ru	1F
sj3.lenta.ru	1F
sj4.lenta.ru	1F
smsmail.ru	1F
top.list.ru	1F
top.one.ru	1F
u532.86.spylog.com	1F
w1.extreme-dm.com	1F
www-banner.chat.ru	1F
www.30424.net	1F
www.allrunet.ru	1F
www.anekdot.ru	1F
www.artnavigator.ru	1F
www.astrolab.ru	1F
www.bankreferatov.ru	1F
www.bitel.ru:8080	1F
www.bmtelecom.ru	1F
www.elf91.ru	1F
www.mafia.ru	1F
www.megafongsm.net	1F
www.mgsm.ru	1F
www.rosmet.com	1F
www.sama.ru	1F
www.sexylib.ru	1F
www.tcwo.com	1F
www.technonet.ru	1F
www.the-underdogs.org	1F
www.top100.mafia.ru	1F
www.translate.ru	1F
www.wouldyouscrew.com	1F
www.xbox-hacker.net	1F
yellow.bashnet.ru	1F
@@@@	0F	1F

             reply	other threads:[~2002-11-05 18:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-05 18:28 Alexander Mayorov [this message]
2002-11-05 18:40 ` [Comm] " Konstantin Lepikhov
2002-11-05 18:57   ` Alexander Mayorov
2002-11-05 19:47     ` Konstantin Lepikhov
2002-11-05 20:50       ` Alexander Mayorov
2002-11-06 14:37         ` Vitaly Lugovsky
2002-11-06 15:09     ` Дмитрий Зубов
2002-11-06 15:50       ` aen
2002-11-06 18:14         ` Alexandre Redko
2002-11-10  6:34         ` Andrey Vakatov
2002-11-06  5:34   ` Pavel N.Solovyov
2002-11-06  6:26     ` Pavel N.Solovyov
2002-11-05 19:22 ` [Comm] Re: [Comm] " Maksim Otstavnov
2002-11-05 20:53   ` Alexander Mayorov
2002-11-05 21:03     ` [Comm] Re[2]: " Maksim Otstavnov
2002-11-06 14:15       ` Alexander Mayorov
2002-11-10  5:31         ` Pavel N.Solovyov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211052328.23143.fedex@bashnet.ru \
    --to=fedex@bashnet.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git