Post Reply 
Cnet blocked by Sidki's filters
Nov. 10, 2008, 08:27 PM
Post: #16
RE: Cnet blocked by Sidki's filters
(Nov. 10, 2008 06:04 PM)Oddysey Wrote:  It's a widely held sentiment that Proxo should be made to filter as generically as possible. I agree with that, but only until it becomes burdensome to "make it so". ...

Good insight! There is howerver one generic construct that seems to work more often in recent times, which is the removal of IFRAME. Web coders have been using that quite a bit lately as their preferred method to inject ads and other stuff into pages. Cnet, for one, looks more appealing without them.

I don't know how to do that in Proxo, but in general it would be filtered by:
1) Find the start of an HTML '<iframe ...'
2) Find its closing '</iframe' within about 2000 characters, and the subsequent '>' char ending that tag.
3) Blank out or otherwise remove All of it.
4) Repeat.

Attached for the curious is a couple of images showing some Iframe at Cnet. Content between the green and corresponding yellow goes away.


Attached File(s)
.gif  cnet_iframe1.gif (Size: 24.06 KB / Downloads: 796)
.gif  cnet_iframe2.gif (Size: 4.71 KB / Downloads: 679)
Add Thank You Quote this message in a reply
Nov. 10, 2008, 09:25 PM
Post: #17
RE: Cnet blocked by Sidki's filters
Oddysey Wrote:Bah! Why, when I was a young whippershapper, I used to assemble my own code, right on my very own Altair 8080... uphill.... both ways!

I think I still have an 8085 laying around here somewhere I wire wrapped together way back when.
Machine code all the way. Good times.

Graycode Wrote:There is howerver one generic construct that seems to work more often in recent times, which is the removal of IFRAME.
...snip...
I don't know how to do that in Proxo, but in general it would be filtered by:
1) Find the start of an HTML '<iframe ...'
2) Find its closing '</iframe' within about 2000 characters, and the subsequent '>' char ending that tag.
3) Blank out or otherwise remove All of it.
4) Repeat.

Hmmm...it looks to me like you just wrote your first filter!
Welcome to the club. Smile!

z12
Add Thank You Quote this message in a reply
Nov. 11, 2008, 12:08 AM
Post: #18
RE: Cnet blocked by Sidki's filters
(Nov. 10, 2008 09:25 PM)z12 Wrote:  Hmmm...it looks to me like you just wrote your first filter!
Welcome to the club. Smile!

Thanks but I'm not qualified for the club because I don't know how to specify it for Proxo.
I suppose that puts me somewhat shy of being useful. Not talking
Add Thank You Quote this message in a reply
Nov. 11, 2008, 12:11 AM
Post: #19
RE: Cnet blocked by Sidki's filters
When i used sidki config, i always disabled comment ad filters, i don't trust in this concept, i prefer the typical list for adsources.
------
I hijack here my filter for iframes. It needs other filters and lists to work, so only posting here for informational purposes...

Code:
[Patterns]
Name = "<iframe|ilayer> Block by ad-src or offsite (^Key:Shift){ln}081027"
Active = FALSE
URL = "(^$KEYCHK(^S))$TYPE(htm)(^$LST(Bypass-Ads))"
Bounds = "$NEST(<iframe,</iframe >)|$NEST(<ilayer,</ilayer >)"
Limit = 2048
Match = "($NEST((<(\w)\2),*\ssrc=$AV(\3)*,>)*)\8"
        ""
        "&(^*\s(height|width)=$AV([#0-1]))"
        "$TST(V_Html=1)"
        "(^$TST(\3=$AV(*$LST(Protect-LinksTo)*)))"
        "("
        "$TST(\3=(*(.|/)($LST(AD-SRC))\9*))$SET(4=Ad-Src :\9)"
        "|"
        "$TST(\3=( \w://(\w://|)(^\h)* ))$SET(4=Offsite: \3)"
        ")"
        "$SET(5=prox)"
Replace = "<center><span class=\5 style=display:none;>\r\n"
          "<a href=\3 target="_top" title="\9: \3"><font color=crimson>[\2 \4]</font></a>\r\n"
          "<a href="http://addtolist//proxomitron//\3~reload~\u" "
          "target="_top" title="Add to Protect-LinksTo list"><font color=green>[Protect]</font></a>\r\n"
          "</span></center>\r\n"

The \8 was used for doing toggle later, but i realized the browser was downloading iframe with visibility:hidden. So i removed the toggle...

By the way now i prefer to block/toggle iframes with noscript corrected, before i said adblock plus..
Add Thank You Quote this message in a reply
Nov. 11, 2008, 12:32 AM
Post: #20
RE: Cnet blocked by Sidki's filters
(Nov. 10, 2008 06:33 PM)Oddysey Wrote:  Bah! Why, when I was a young whippershapper, I used to assemble my own code, right on my very own Altair 8080... uphill.... both ways! Big Teeth

Kids these days! Not talking

lol... i still have my ol' 8080...
still have (and USE) the ol' C-64!!!


(admit it! Pac-Man, Frogger, and Donkey Kong are FAR SUPERIOR to today's "shoot 'em up" CRAP-WARE!)...

[oh, and i had to "assemble" those games BY HAND before being able to "play them"...]



yeah, "kids these days"...

skip all dat, i'll take the assemble-yourself Pac-Man days ANY DAY over the CRAP we have "these days"... "but there's no BLOOD in Pac-Man, what's the fun in that?"... yeah, well our school's didn't have any "gun-day massacres" like they do nowadays...

okay, where was I? did i just go 'hpguru' on ye all?
Add Thank You Quote this message in a reply
Nov. 11, 2008, 02:20 AM
Post: #21
RE: Cnet blocked by Sidki's filters
Graycode Wrote:I'm not qualified for the club because I don't know how to specify it for Proxo.
I suppose that puts me somewhat shy of being useful.

Ideas are always useful, and welcome.

As for the coding, it looks to me like your off to a good start:

Code:
[Patterns]
Name = "Remove iframes V1.0"
Active = TRUE
Limit = 2000
Match = "<iframe*</iframe >"

Filters don't have to be complicated to be effective.
Of course, with proxo, this filter could be written several different ways.

ProxRocks Wrote:i still have my ol' 8080...
still have (and USE) the ol' C-64!!!

I loved my old C-64. Ton of fun.
Too bad it died (no blood).

z12
Add Thank You Quote this message in a reply
Nov. 11, 2008, 09:36 AM
Post: #22
RE: Cnet blocked by Sidki's filters
(Nov. 10, 2008 09:25 PM)z12 Wrote:  Hmmm...it looks to me like you just wrote your first filter!
Welcome to the club. Smile!
Does that mean that I shouldn't tell him that Scott included just such a beast in the default config set? (The two Banner Blasters and the JS banner killer.)Dead

Oops, did I just blow it? Shame

(Nov. 11, 2008 02:20 AM)z12 Wrote:  Filters don't have to be complicated to be effective.
From you, this kind of high-quality statement is to be expected.

Graycode, pay attention, the Master is speaking from experience here.

As usual, the same story applies to you as it did to the rest of us..... no one here was born knowing all this crud, we had to learn it from the ground up, just like you're doing now. The only difference is, we got interested/curious/involved(/deranged) sooner than you, tha's all. Don't worry, as long as you eat your Wheaties every morning, you'll soon grow up big and tall, and be able to program rings around the average geek/nerd/dork/mongrel/script kiddie, no sweat.

Now try to snatch the pebble from z12's hand! Pervert

(Nov. 11, 2008 12:32 AM)ProxRocks Wrote:  did i just go 'hpguru' on ye all?
I've got one thing to say to you about that: Your hp-fu is weak! Sinister

G'night! Big Teeth



Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Nov. 11, 2008, 11:04 AM
Post: #23
RE: Cnet blocked by Sidki's filters
(Nov. 09, 2008 01:36 PM)43unite Wrote:  Thanks for the detective work z12!
Here's how I resolved this issue...

Close Proxomitron & browser.

Make a backup copy of 'default.cfg' (it's just a text file).

Open 'default.cfg' as a text file. You can temporarily rename it 'default.cfg.txt' if you need to.

Locate the filter:
"Name = "<!> Remove: Comment-Block Ads I 7.01.05 [sd] (d.2)"

Manually edit the following line from:
URL = "$TYPE(htm)(^$TST(keyword=*.(a_ads|a_adcomm1).*))"
- to this -
URL = "$TYPE(htm)(^news.cnet.com/)(^$TST(keyword=*.(a_ads|a_adcomm1).*))"

Save file as 'default.cfg'.

Run Proxo.

By adding (^news.cnet.com/) as shown this filter will now bypass "news.cnet.com/".

The page should now load correctly.

Thank you, but that filter:
"Name = "<!> Remove: Comment-Block Ads I 7.01.05 [sd] (d.2)" is not in default.cfg. Even if it were, as other comments stated later in this thread, that would only fix it for news articles at Cnet. I read REVIEWS at Cnet in addition to articles and I also use ZDnet occasionally.

I see z12 said to edit the ad list instead but I don't know how to do that either. Sad
Add Thank You Quote this message in a reply
Nov. 11, 2008, 11:23 AM
Post: #24
RE: Cnet blocked by Sidki's filters
open AdComments.txt (sidki has them all as .ptxt's, but i disagree with the new extension and the registry entry that is a MUST to get that new extension to WORK properly, so i rename all as .txt)...

open using NOTEPAD...

hit Ctrl-G - opens a "Goto line" dialog...

enter the number 306 then Enter - takes you to line #306...

you will see this - MAC ad...

change it to this - xMAC ad...
(OR anything like BREAK-MAC ad or MAC ad-your-name...)

SAVE the changes and CLOSE the .txt file...

RELOAD Proxo, close-and-reopen for example...


whoala, you're up and running now with an edited list...


IF you do the registry-borking for the .ptxt, you can use sidki's menu to open the .ptxt files...
IF you rename .ptxt's to .txt's, you can use sidki's menu to open the .txt files...


HTH...
Add Thank You Quote this message in a reply
Nov. 11, 2008, 07:33 PM
Post: #25
RE: Cnet blocked by Sidki's filters
ProxRocks;

I googled for your website, and found your motto: "Registries Borked While You Wait".

Big Teeth



Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Nov. 11, 2008, 08:29 PM
Post: #26
RE: Cnet blocked by Sidki's filters
lol...


i have a web page? news to me...

so i googled on over and searched for "proxrocks website" - found a "myspace", but my HOSTS BLOCKS myspace, and anything else semi-jack-a%%-the-movie-ish... face it, "social" websites are anti-social...


okay, i feel better now... Big Teeth
Add Thank You Quote this message in a reply
Nov. 13, 2008, 09:31 AM
Post: #27
RE: Cnet blocked by Sidki's filters
ProxRocks thank you! I learned something very useful. There is a lot of basic stuff I don't know and don't even know that I don't know. I got my first computer at age 55 and have taught myself what I do know. I didn't how to do that "go to" line dialog in Notepad. I didn't even know it existed. I was wondering how one would get to that particular line. I have to apologize to everyone here...I don't really belong here as I am so ignorant about things that you guys consider simple, basic...take for granted, etc.

Anyhow it is fixed. I had gone to read a Cnet article about Flash Player 10 before I checked this thread for new posts and, of course, I couldn't see the article until I bypassed Proxo. After I followed your instructions, I was able to see that page without bypassing Proxo.
Add Thank You Quote this message in a reply
Nov. 13, 2008, 12:04 PM
Post: #28
RE: Cnet blocked by Sidki's filters
of course you BELONG!...

you could also have done a "Ctrl-F" from within Notepad to open a 'Find' dialog and then searched for "mac ad" (be sure the "Match case" in the lower left is not checked, or search for "MAC ad" instead, either way)...

that will also take you to the line-in-question...
(it's the only line with "mac ad", for this particular .txt file...)
Add Thank You Quote this message in a reply
Nov. 13, 2008, 12:13 PM
Post: #29
RE: Cnet blocked by Sidki's filters
Mele20, it's really really nice to see people of your age using proxomitron. I will tell you a few things, i'm 29 and use computers since i was a child, aaaaandddd i didn't know that trick for notepad too. Maybe i knew at my very beginning and i forgot it because i moved to notepad++, but if i go to the computer of a friend it's very good to remember that trick.
Worst is my case, i promess you i didn't saw in proxomitron for many years the find bar, down in the web filters window. In old times i used to test the releases of sidki and using a macro to renumber all the filters of his set to find them faster, imagine my face when a few months ago i saw the find bar hehehehe...
Add Thank You Quote this message in a reply
Nov. 13, 2008, 02:01 PM
Post: #30
RE: Cnet blocked by Sidki's filters
i'm a huge fan of Notepad++ (and Notepad2) [have used a few others]...

and fyi, "Ctrl-G" works in BOTH of those also Big Teeth
(but why use it when the line numbers are already displayed, lol...)
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: