Пpиветствую тебя, Nicolas!
Tuesday September 29 1998 12:49, Nicolas Rodionov писал к Juriy Goloveshkin:
JG>> а на мой взгляд, redirect-program гибче и не оставляют "дыр".
NR> А ты сделал такую для баннеров?
ага. вот кусок(в релиз-нотес прочтешь как это еще и в зависимости от адресов
сделать):
squid.conf
redirect_program /usr/local/sbin/redirector.pl
redirect_children 3
а кусок скрипта(на что заменить your.domain догадаешься :) :
=== Begin redirector.pl ===
#!/usr/local/bin/perl
$|=1;
while (<>) {
s@.*rambler.ru/top100.cnt\?.*@ href="http://your.domain/rambler.gif@;">http://your.domain/rambler.gif@;
s@.*/cgi-bin/banner.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*cgi/bn.pl.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*/advert.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*/adverts.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*banner.linkexchange.com.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*www.linkexchange.ru/cgi-bin/.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*/cgi/flamingo-image.pl.*@ href="http://your">http://your,domain/nospam.gif@;
s@.*bizlink.ru/cgi-bin/irads.cgi.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*/cgi-bin/ads/.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*www.geocities.com/sponsor/.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@.*reklama.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
s@http://1000.stars.ru/cgi-bin/1000.cgi.*@http://your.domain/nospam.gif@;
s@.*ranker/ranker.asp.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
# --- поцокано ---
#s@.*.*@ href="http://your.domain/nospam.gif@;">http://your.domain/nospam.gif@;
print;} === End redirector.pl ===
Рад был пообщаться!
Juriy
... И по ночам горит твоя свеча, когда клопов ты душишь сгоряча...
-- end of forwarded message --
-- С тем, что не помешает никогда, Kittle