To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Tue, 09-Feb-2010 16:04:55 GMT
         internet.com

Go Back   JustLinux Forums > Community Help: Check the Help Files, then come here to ask! > How I Did It!

How I Did It! Got a How-To/Tutorial/Guide you wrote? Post it here.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-21-2004, 01:26 PM
hlrguy's Avatar
hlrguy hlrguy is offline
Mandriva 1 on a T3640
 
Join Date: Sep 2002
Location: San Antonio, TX
Posts: 2,594
86 the annoying delays from ad servers

Overview...noticed that Linux today uses, started using klipads.dvlabs.com as a new ad server. This server demands a reply from the client machine, for a full 5 minutes before timing out, before the page is allowed to load. I won't open up my firewall to allow for the ack from my closed ports, so started looking. Reference in thread...

http://www.justlinux.com/forum/showt...hreadid=120746

Did a search on 'klipads dvlabs' in google. Came accross this...
http://everythingisnt.com/Hosts
# This Hosts file has been altered to block ad servers.
...
127.0.0.1 klipads.dvlabs.com
...


Basically, you just add the annoying ad servers to your hosts file, incorrectly telling your browser that the IP is local, it doesn't go to the web server, doesn't stall the page, and poof, linuxtoday is navigable without opening my firewall.

I find, more and more, that web pages require MANDATORY ack from the server port queries, or the pages load really slow or fail to load.

I am still investigating whether there is any security problem with adding these addresses to your hosts file.

Thoughts?

Note: This post may be deleted, because ads are the staple of content providers, however, demanding a hole in a firewall to be able to surf web pages is, in my opinion, simply wrong ad should not be tolerated. For the pages that use these ad servers, it is simply use one that doesn't require a security breach, or deal with people not coming to the site.

hlrguy
__________________
Were you a Windows expert the VERY first time you looked at a computer with Windows, or did it take a little time.....
My Linux Blog
Linux Native Replacements for Windows Programs
Mandriva One on a "Vista Home Barely" T3640 E-Machine runs great.
Reply With Quote
  #2  
Old 01-21-2004, 01:36 PM
ph34r's Avatar
ph34r ph34r is offline
HAL
 
Join Date: Sep 1999
Posts: 3,138
No issues, as long as you don't want to surf to that particular domain. Even better if you use Mozilla is to use the userContent.css file to control display of images based on URL or path...

Code:
/*
 * 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.
 */

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

/*
 * hides many ads by preventing display of images that are inside
 * links when the link HREF contans certain substrings.
 */

A:link[HREF*="ad."] IMG { display: none ! important }
A:link[HREF*="ads."] IMG { display: none ! important }
A:link[HREF*="/ad"] IMG { display: none ! important }
A:link[HREF*="/A="] IMG { display: none ! important }
A:link[HREF*="/click"] IMG { display: none ! important }
A:link[HREF*="?click"] IMG { display: none ! important }
A:link[HREF*="?banner"] IMG { display: none ! important }
A:link[HREF*="=click"] IMG { display: none ! important }
A:link[HREF*="/ar.atwo"] IMG { display: none ! important }
A:link[HREF*="spinbox."] IMG { display: none ! important }
A:link[HREF*="transfer.go"] IMG { display: none ! important }
A:link[HREF*="adfarm"] IMG { display: none ! important }
A:link[HREF*="bluestreak"] IMG { display: none ! important }
A:link[HREF*="doubleclick"] IMG { display: none ! important }

/* disable ad iframes */
IFRAME[SRC*="ad."]  { display: none ! important }
IFRAME[SRC*="ads."]  { display: none ! important }
IFRAME[SRC*="/ad"]  { display: none ! important }
IFRAME[SRC*="/A="]  { display: none ! important }
IFRAME[SRC*="/click"]  { display: none ! important }
IFRAME[SRC*="?click"]  { display: none ! important }
IFRAME[SRC*="?banner"]  { display: none ! important }
IFRAME[SRC*="=click"]  { display: none ! important }
IFRAME[SRC*="/ar.atwo"]  { display: none ! important }
IFRAME[SRC*="spinbox."]  { display: none ! important }
IFRAME[SRC*="transfer.go"]  { display: none ! important }
IFRAME[SRC*="adfarm"]  { display: none ! important }
IFRAME[SRC*="bluestreak"]  { display: none ! important }
IFRAME[SRC*="doubleclick"]  { display: none ! important }

/* turning some false positives back off */

A:link[HREF*="download."] IMG { display: inline ! important }
A:link[HREF*="click.mp3"] IMG { display: inline ! important }
A:link[HREF*="newthread"] IMG { display: inline ! important }
/*
 * For more examples see http://www.mozilla.org/unix/customizing.html
 */
/* block some flash */
 embed[type="application/x-shockwave-flash"][src*="spd.atdmt.com"] {
   display: none !important;
   visibility: hidden !important;
}

blink { text-decoration: none ! important }
marquee { -moz-binding: none ! important }
:link, :visited { text-decoration: underline ! important }
img[src^="*/ads/*"] { display: none ! important; }
__________________
-----
This space for rent
Reply With Quote
  #3  
Old 01-21-2004, 01:42 PM
ph34r's Avatar
ph34r ph34r is offline
HAL
 
Join Date: Sep 1999
Posts: 3,138
Here's a screenie of the JL front page from Mozilla, using the adblocking in my above post. No messing with /etc/hosts or anything like that...
Attached Images
File Type: jpg noads.jpg (24.9 KB, 787 views)
__________________
-----
This space for rent
Reply With Quote
  #4  
Old 01-21-2004, 02:08 PM
hlrguy's Avatar
hlrguy hlrguy is offline
Mandriva 1 on a T3640
 
Join Date: Sep 2002
Location: San Antonio, TX
Posts: 2,594
Thanks for the tip. I like your method better. I copied and created
userContent.css, and put it into
/usr/local/mozilla/defaults/profile/chrome/
however, I am still seeing adds from ad.doubleclick.net

Where did you put yours?

hlrguy
__________________
Were you a Windows expert the VERY first time you looked at a computer with Windows, or did it take a little time.....
My Linux Blog
Linux Native Replacements for Windows Programs
Mandriva One on a "Vista Home Barely" T3640 E-Machine runs great.
Reply With Quote
  #5  
Old 01-21-2004, 02:20 PM
ph34r's Avatar
ph34r ph34r is offline
HAL
 
Join Date: Sep 1999
Posts: 3,138
It goes in your own mozilla folder ...

~/.mozilla/default/foo.slt/chrome
__________________
-----
This space for rent
Reply With Quote
  #6  
Old 01-21-2004, 03:54 PM
Beavbo Beavbo is offline
Perfectshunist
 
Join Date: Jan 2003
Location: California
Posts: 74
Thanks ph34r that might be one of the neatest tricks I've seen to date!

Just out of curiosity though, what would you add to the userContent.css file in order to get it to stop showing those ibm.com/open flash animations? All i can get from the source of the page is its getting referred to by www.justlinux.com/RealMedia/ads, but I can't seem to block that correctly. Please post back if you have the inclination.
__________________
If you can't dazzle them with brilliance............riddle them with bullets
Reply With Quote
  #7  
Old 01-21-2004, 03:57 PM
ph34r's Avatar
ph34r ph34r is offline
HAL
 
Join Date: Sep 1999
Posts: 3,138
Playing with the src URL in :

Code:
/* block some flash */
 embed[type="application/x-shockwave-flash"][src*="spd.atdmt.com"] {
   display: none !important;
   visibility: hidden !important;
}
Should do it...
__________________
-----
This space for rent
Reply With Quote
  #8  
Old 01-21-2004, 04:00 PM
Beavbo Beavbo is offline
Perfectshunist
 
Join Date: Jan 2003
Location: California
Posts: 74
Yea, thats where I tried changing it to www.justlinux.com/RealMedia but to no avail. I'll keep messing around with it and post should I figure it out. Thanks
__________________
If you can't dazzle them with brilliance............riddle them with bullets
Reply With Quote
  #9  
Old 01-21-2004, 04:20 PM
Hayl's Avatar
Hayl Hayl is offline
 
Join Date: Oct 2000
Location: Calgary, Alberta, Canada
Posts: 8,141
add this - it should stop the rest:
Code:
/* remove Ads */
*[src*="mds.centrport.net"],
*[src*="images.deviantart.com/shared/topads.gif"],
*[src*="view.atdmt.com"],
*[src*="www.justlinux.com/RealMedia/ads/click_lx.ads/intm/linux/www.justlinux.com/index/706227077/468x60-2/House_Dealtime_Promotion_1e/dealtime_750_2.html/38653$
*[src*="www.justlinux.com/RealMedia/ads/Creatives/House_Dealtime_Promotion_1e/bg-left.gif"],
*[src*="www.justlinux.com/RealMedia/ads/Creatives/House_Dealtime_Promotion_1e/sp.gif"],
*[src*="www.justlinux.com/RealMedia/ads/Creatives/Hoovers_Online_4e"],
*[src*="www.justlinux.com/index/1238038594/house_ribbon/House_Ent_Linux_Fall03_1n/elforumsave-03.gif"],
*[src="www.justlinux.com/index/1238038594/house_ribbon/House_Ent_Linux_Fall03_1n/elforumsave-03.gif"],
*[src="http://www.justlinux.com/RealMedia/ads/click_lx.ads/intm"],
*[src="http://www.justlinux.com/RealMedia/ads/click_lx.cgi"],
*[src="http://www.justlinux.com/RealMedia/ads/Creatives/Nortel_Networks_Email_1b/sp.gif"],
*[src="http://www.justlinux.com/RealMedia/ads/Creatives/Nortel_Networks_Email_1b/right-bg.gif"],
*[src*="hardwarecentral.dealtime.com"],
*[src*="http://http.edge.ru4.com/smartserve"],
*[src*="www.justlinux.com/RealMedia/ads/Creatives/House_Dealtime_Promotion_1e/go.gif"],
*[src*="www.justlinux.com/RealMedia/ads/Creatives/House_Dealtime_Promotion_1e/logo.gif"],
*[src*="www.justlinux.com/RealMedia/ads/Creatives/House_Dealtime_Promotion_1e/bg-right.gif"],
*[src*="www.justlinux.com/icom_includes/special/cdxpo/80211-ribbon.gif"],
*[src*="www.justlinux.com/icom_includes/"],
*[src*="www.justlinux.com/RealMedia/ads/click_lx.ads/intm/linux/www.justlinux.com/"],
*[src*="www.internet.com/corporate/"],
*[src*="http://hosting.verio.com/index.php/vpsmanaged_vps.html"],
*[src*="hardwarecentral.dealtime.com/BannerIn"],
*[src*="www.verisign.com/images/landing/lan6031/ecom_form_160x209.gif"],
*[src*="hardwarecentral.dealtime.com/xKW-"],
*[src*=".qz3.net"],
*[src*="ads.pointroll.com"],
*[src*="mirror.pointroll.com"],
*[src*="www.justlinux.com/RealMedai"],
*[src*="a.tribalfusion.com"],
*[src*="/icom_includes/special/cdxpo/cdxpo-top.gif"],
*[src*="fmads.osdn.com"],
*[src*="www.justlinux.com/icom_includes/special/cdxpo/cdxpo-top.gif"],
*[src*="www.justlinux.com/icom_includes/special/cdxpo/"],
*[src*="www.justlinux.com/icom_includes/special/cdxpo/80211-ribbon.gif"],
*[src*="/icom_includes/special/cdxpo/80211-ribbon.gif"],
*[src*="www.tinyminds.org/images/banners"],
*[src*="images/banners"],
*[src*="adfarm.mediaplex.com"],
*[src*="images.deviantart.com/affiliates/"],
*[src*="images.deviantart.com/shared/winzip.gif"],
*[src*="www.justlinux.com/RealMedia/ads"],
*[src*="images.deviantart.com/banners/"],
*[src*="images.deviantart.com/shared/trillian.gif"],
*[src*="sfads.osdn.com"],
*[src*="ads.doubleclick.com"],
*[src*="cache.burstnet.com"],
*[src*="ads.doubleclick.net"],
*[src*="ad.doubleclick.net"],
*[src*="ad.doubleclick.com"],
*[src*="us.a1.yimg.com"],
*[src*="www.theregister.co.uk/media"],
*[src*=".qz3.net"],
*[src*="a207.p.f.qz3.net"],
*[src*="a207.p.f.qz3.net/7/207/2554/v001/eyewonder.download.qz3.net/2554/114720"],
*[src*="/RealMedia/ads"],
*[src*="www.burstnet.com"],
*[src*="/ads"],
*[src*="ar.atwola.com"],
*[src*="spd.atdmt.com"] {
        display: none;
        visibility: hidden;
}
Reply With Quote
  #10  
Old 01-21-2004, 05:15 PM
mdwatts's Avatar
mdwatts mdwatts is offline
Grand Master
 
Join Date: Dec 1999
Location: Toronto
Posts: 39,364
Neato !!

Thank-you gentlemen as all of those now work great with Firebird.
__________________
SEARCH FIRST... ASK SECOND Read the JL 'Community Help Posting Guidelines' before posting in the forums.

Precompiled Redhat NTFS Modules

Linuxplanet Tutorials

If Linux doesn't have the solution, you have the wrong problem. ... Please do not send me a PM asking for help...

Please read the search suggestion thread in JL Ideas
Reply With Quote
  #11  
Old 01-21-2004, 05:32 PM
Beavbo Beavbo is offline
Perfectshunist
 
Join Date: Jan 2003
Location: California
Posts: 74
Hooray, its working now! Apparently one of the tricks was I had to put it in the .phoenix/default/foo.slt/chrome/ directory (just like you said) unlike the .mozilla/default/foo.slt/ directory like my inner idiot was telling me to do

Basically I just compiled ph34r and Hayl's config files into one and put it in that directory and it works like a champ. In that code that Hayl posted, however, for me, the line that read:

*[src*="www.justlinux.com/RealMedia/ads/click_lx.ads/intm/linux/www.justlinux.com/index/706227077/468x60-2/House_Dealtime_Promotion_1e/dealtime_750_2.html/38653$

needed to be changed to:

*[src*="www.justlinux.com/RealMedia/ads/click_lx.ads/intm/linux/www.justlinux.com/index/706227077/468x60-2/House_Dealtime_Promotion_1e/dealtime_750_2.html/38653$"],

For whatever reason, it was missing that last little bit of formatting. Anyway, thanks again guys, keep up the good work.
__________________
If you can't dazzle them with brilliance............riddle them with bullets
Reply With Quote
  #12  
Old 01-21-2004, 05:54 PM
hlrguy's Avatar
hlrguy hlrguy is offline
Mandriva 1 on a T3640
 
Join Date: Sep 2002
Location: San Antonio, TX
Posts: 2,594
So now, how do I change the title to 'How ph34r 86ed the adserver delays'?

hlrguy
__________________
Were you a Windows expert the VERY first time you looked at a computer with Windows, or did it take a little time.....
My Linux Blog
Linux Native Replacements for Windows Programs
Mandriva One on a "Vista Home Barely" T3640 E-Machine runs great.
Reply With Quote
  #13  
Old 02-12-2004, 11:29 AM
ph34r's Avatar
ph34r ph34r is offline
HAL
 
Join Date: Sep 1999
Posts: 3,138
New one... you can add one of the iframe lines to block stuff from www.verisign.com to get rid of that new big add on the right...
__________________
-----
This space for rent
Reply With Quote
  #14  
Old 02-12-2004, 12:15 PM
Hayl's Avatar
Hayl Hayl is offline
 
Join Date: Oct 2000
Location: Calgary, Alberta, Canada
Posts: 8,141
Has anyone been able to remove this text-based part of an Ad yet?

I haven't been able to figure it out.

This is a trimmed screenshot of what the part that is getting through the userContent.css filter looks like:

<edit> NM: found it - just add hotjobs in as a filter </edit>
Reply With Quote
  #15  
Old 02-12-2004, 12:37 PM
Hayl's Avatar
Hayl Hayl is offline
 
Join Date: Oct 2000
Location: Calgary, Alberta, Canada
Posts: 8,141
the only ones I am getting now are the Nortel one and the Voice Over IP one

if you have a filter for them plz let me know.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:04 PM.

Help File Library
Modems
Command Reference
Hardware
Webservers
Software
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.