Old Proxomitron Forums

Proxomitron Program - discussions welcome => Questions and Answers => Topic started by: hpguru on May 12, 2002, 08:24:22 AM

Title: Using CSS to hide Ad containers
Post by: hpguru on May 12, 2002, 08:24:22 AM
Has anyone here toyed with the idea of using CSS or Javascript to eliminate, hide or disable certain ad containers? I haven't really had time to develope the idea but here is a simple example of a filter to disable iframes. It will disable them by hiding the iframe and by not allocating room for the iframe to be rendered. In other words - no obvious blank spaces. With this filter you can eliminate any filters that delete or replace iframes but you will need to maintain an up to date hosts file because the content of the iframe is still loaded even though it isn't being displayed.


Name = "IFRAME Hider"
Active = TRUE
Limit = 7
Match = "</head>"
Replace = "<style>
"
          "IFRAME {display: none;}
"
          "</style>
"
          "</head>
"




I've not widely tested this filter but it has worked as expected at sites with known iframes. AFAIK no other browsers besides IE support iframes so if you don't use IE you don't need it.

 
Title: Using CSS to hide Ad containers
Post by: Arne on May 12, 2002, 09:03:33 AM
I have just tested it and it works really nice. Funny you are playing with this at the moment, because I was just playing with the visibility:hide; in DIV tags when you posted this.

Best wishes
Arne
Imici username: Arne
Title: Using CSS to hide Ad containers
Post by: hpguru on May 12, 2002, 09:13:47 AM
LOL! I guess we are on to something then!

 
Title: Using CSS to hide Ad containers
Post by: JD5000 on May 12, 2002, 09:18:47 AM
I've been using css to hide ads by size. I haven't tried to hide ad containers tho.

--------

"Imagination is more important than knowledge" - Einstein
Title: Using CSS to hide Ad containers
Post by: hpguru on May 12, 2002, 05:32:04 PM
I guess I'm going to have to find some time to explore this more thoroughly. I keep wondering how much it would speed up filtering to just inject a script that searches and filters the document object for ad keywords. It wouldn't require a really large array of keywords. When I was using AtGuard for ad blocking I was able to block almost all ads with a relatively small list of match strings. The only downside I can think of would be that such a script would fail to run for sites in the Restricted Zone. Therefore PAC files are another concideration.

 
Title: Using CSS to hide Ad containers
Post by: Arne on May 12, 2002, 06:37:48 PM
I have never understood the logic of Restricted Zone It has no logic in my eyes. I have rearranged everything here. My internet zone is the one with all restrictions in it. Nothing is allowed which can be turned off. Then I use my restricted zone for sites I trust a little bit and have a few things turned ON in there. At last I have my trusted zone where I have even more things turned on.

In this way I surf knowing that every site which I have not manually put in either Restricted or Trusted will always be in my Internet zone where everything is OFF. To me this makes more logic since every such site (which is not in another zone) always will end up as being in the internet zone :-)

Best wishes
Arne
Imici username: Arne
Title: Using CSS to hide Ad containers
Post by: hpguru on May 12, 2002, 07:28:46 PM
Interesting idea Arne, but I wonder what effect that will have on new P3P settings in IE6? If you are using IE6 you might want to take a gander at this and the other links posted.

http://www.dslreports.com/forum/remark,2927307~root=security,1~mode=flat

 
Title: Using CSS to hide Ad containers
Post by: Jor on May 13, 2002, 12:24:13 AM
quote:

Has anyone here toyed with the idea of using CSS or Javascript to eliminate, hide or disable certain ad containers?
Paul Rupe (http://"http://www.geocities.com/u82011729/prox/css.html") was the first to do this, afaik, my entire filterset was designed around his excellent filters

One way in which my current config set differences from Paul Rupe's examples, is that I commented out the .prox:before and :after pseudo-classes, to completely hide kilt content.

Your iframe hider is a good example of the power of CSS, but remember you can also completely deactivate them (in Opera at least).

 
Title: Using CSS to hide Ad containers
Post by: hpguru on May 13, 2002, 07:24:29 AM
Thanks Jor.

 
Title: Using CSS to hide Ad containers
Post by: Jor on May 13, 2002, 04:41:29 PM
Oh, by the way -- current browsers that support iframe (it /is/ in HTML and XHTML1 Transitional) are iCab, Mozilla/NS6, Opera, and MSIE. Gecko should support them, so that leaves the text browsers and Netscape 4 as the only browsers that still do not support it.

 
Title: Using CSS to hide Ad containers
Post by: JakBeNymble on May 13, 2002, 05:48:47 PM
Hi "Guys",
         I have a question that might be alittle off the subject, but I thought I would ask. I know that I.E. is full of security holes, and Opera is considered to be one of the most secure Browsers you can use. I have heard different things about Netscape. What is your opinion of NetScape? Is it pretty secure or should it be use with caution?
Have A Great & Wonderful Day My Friends!
"Jak"

 
Title: Using CSS to hide Ad containers
Post by: Jor on May 13, 2002, 08:15:15 PM
Both Mozilla and Opera are very secure -- I think Mozilla had only a few dozen security breaches, and Opera had only one so far (in version 5.11). Quite a contrast to the 10000+ MSIE has, and the many bugs still not fixed in 6.0 .

Any recent browser but MSIE (and Netcaptor, and other "browsers" which use the MSIE engine) is fairly safe.

 
Title: Using CSS to hide Ad containers
Post by: Seeker on May 14, 2002, 03:41:15 AM
On the subject of Netscape/Mozilla security, check out this thread:

http://my.opera.com/forums/showthread.php?s=&threadid=2775

As indicated in the thread, Mozilla has fixed this problem, but the last that I heard, Netscape hasn't even responded to this, much less than fix the problem.

"Let every man be swift to hear, slow to speak, slow to wrath"

James 1:19 <><
Title: Using CSS to hide Ad containers
Post by: hpguru on May 14, 2002, 03:58:11 AM
I quit Netscape with v4.61 after it became an AOL product. I never installed it and I never will. As for Mozilla, the last 5 or 6 versions I've installed all crashed on the first run (usually within the first 5-10 seconds) including RC1 which I had hoped would be vastly improved. It wasn't. I usually uninstall and forget any software that crashes on the first run but I keep trying it again in the hope that they will eventually get it right. (BTW I am running Win2k Pro here and it is rock solid. My system never crashes and none of my applications crash except for 3 apps which aren't Win2k compatible.) Now I realize that Mozilla is still in beta (alpha really) but good grief! It ought to run more than 5 seconds at a time! Having said that I would find it hard to believe that Mozilla isn't actually bristling with security holes. After all, what is a vulnerability but an exploit run against a code bug?

As for IE, you guys probably won't agree but it seems to me that IE is full of security *patches*. 10000+? That's a bit of an exaggeration isn't it? Last count I heard was 14 unpatched security holes.

http://jscript.dk/unpatched/

I think that all browsers have security holes. IE, Opera, Netscape, Mozilla - ALL of them. If IE appears to have more holes then isn't that just an evident token of the fact that the vast majority of researchers studying these things spend most of their research effort looking for ways to exploit IE? A lot of people hate MS a with a passion you know. If these researchers spent an equal amount of time and effort trying to break and exploit the other browsers then they might find just as many holes, perhaps more and they might not get patched as quickly.

Look at it this way, if I did a study in your neighborhood to determine whose yard has the most litter, and upon completion of my study I reported to the newspapers that *your yard* was by far the trashiest, wouldn't you and your friends in the neighborhood take issue with those findings if I had spent 95% of my time meticulously scouring your yard for even the tiniest piece of litter and the remaining 5% in the other yards? What if I arrived with a whole team of independent garbage analysts and all of us decided to scour your yard only leaving just a few to examine the other yards in your neighborhood? Wouldn't you think we were being biased? Would you question our findings? Of course you would.

So IE is a very good browser. Opera is a very good browser. As for Netscape, it's dead, and I see Mozilla as nothing more than a frantic effort to resuscitate a flat-liner. Just my 2 cents.

 
Title: Using CSS to hide Ad containers
Post by: JakBeNymble on May 14, 2002, 05:08:13 AM
Hi "Guys",
          THANKX for All the Replies! I value them all because I think that you guys know what you are talking about! I highly reguard your opinions. However, since I can detect some "Healthy Debate on browsers Coming on", I thought I would move the question to http://asp.flaaten.dk/pforum/topic.asp?ARCHIVE=&TOPIC_ID=533 since browser security is moving away from the original topic that first started this subject folder.

Good healthy debate is good, because that's the way we all learn. By honestly examining all the evidence and making a decision based on what left standing after eveything else has been torn down. But after the smoke clears, lets all still be friends. The Definition of a "Good Friend", is someone who knows everything there is to know about you, . . . and Stills likes you! LOL!

I hope you have a Wonderful & BLessed Day, My Friends,
"Stir-up-trouble-Jak"

 
Title: Using CSS to hide Ad containers
Post by: Seeker on May 14, 2002, 05:15:31 AM
I agree with everything that you said, except that ALL browsers have security holes,  I guess it depends on how you define a hole.  If you go by the pcflank tests, then your statement is true, because it seems impossible to filter out any possible exploit that is funneled through a browser, but if the definition is limited to that of meaning a flaw or defect of design that permits unknown and unforeseen intrusion by an outside entity, then as far as Opera goes, I feel that it is innocent until proven guilty.

"Let every man be swift to hear, slow to speak, slow to wrath"

James 1:19 <><