|
Another Filtering Proxy
|
|
Dec. 05, 2014, 09:05 AM
(This post was last modified: Dec. 05, 2014 02:56 PM by GunGunGun.)
Post: #10
|
|||
|
|||
RE: Another Filtering Proxy
(Dec. 05, 2014 08:36 AM)whenever Wrote: I think it doesn't exist a way like that. That's why major Ad blocking software like ABP or Privoxy have to maintain a blacklist for blocking. And ESC to stop download, View image info and image size is 0x0, so i think yes, no way. Edit: Oh no, seem my above test is wrong, I tried to download that image with my Browser, and Pause download and after I Open the image with window image viewer, It show the image with correct width and height but it still not fully downloaded yet. http://i.imgur.com/0TONiBe.png 10109x4542 but I only download 154KB from that image: http://i.imgur.com/aPGfz41.png Maybe it is possible ? If we can then I think we can use argothirm something like this: Download a part of an image first, and then try to use OS API to detect image width/height, if match then block, if not match then download full image and send to browser. Update: GDI Library can get image size, I tested and worked, great! Here is my test, please try it So much hype at this time! This may open a new future for AdBlock software because we can block ad much more effective!https://app.box.com/s/gtat69ntsdqksrcoy9sg I included source code inside that archive. I think I will request Privoxy's author add this feature, I think it is possible. And I think clearly Python do get image size too, because there is lots of way to call OS API: http://www.google.com/search?q=get+image...e=0&nord=1 Update2: Holy cow, it is so simple and POSSIBLE for SURE, we can did that from a long time ago: http://php.net/manual/en/function.getima....php#88793 Quote:As noted below, getimagesize will download the entire image before it checks for the requested information. This is extremely slow on large images that are accessed remotely. Since the width/height is in the first few bytes of the file, there is no need to download the entire file. I wrote a function to get the size of a JPEG by streaming bytes until the proper data is found to report the width and height:And demo using CURL PHP: http://stackoverflow.com/a/7476094/3763937 Quote:I managed to answer my own question and I've included the PHP code snippet. Seem very exciting. What we will achieve if we can block image based on width height ? - Reliable banner blocking method. - Kill all webbugs that is 0x0 or 1x1 or 2x2, web developer use webbugs to track us, and almost no way to block them all. UPDATE3: Works on PNG too, I will report gif later, test: http://groups.csail.mit.edu/graphics/cla...MapBig.png Update4: WORKS ON GIF TOO! , test: http://www.physics.usyd.edu.au/~gekko/wr...8_2620.gifWhat I've done, Google "big image" "big image "png"" "big image "gif"". Quote: + Parse Privoxy actions files (default.action, user.action) for URL blockingThank you very much, very nice! |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help



So much hype at this time! This may open a new future for AdBlock software because we can block ad much more effective!

![[-]](images/ONi/collapse.gif)