Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Client side filter for browsers

Posted on 1997-08-03
3
Medium Priority
?
245 Views
Last Modified: 2013-12-25
I get increasingly frustrated by long download times for certain pages due to the use of banner advertising.

I would like to develop a filter so that requests from my browser for banner adds results in a local file access rather than a URL access. I would like suggestions for how this could be achieved.

The only idea I have at the moment is to look for requests for URLs which are gifs of a certain size typical of banner adverts but the URL requests to WinSock do not contain this information.

The second idea is to monitor incoming data in some way and look for the html which characterises banner adds then store the URL so that outgoing requests will then be intercepted.

Any other ideas? Perhaps this could be developed into a commercial product, I expect many people would like to be able to ignore this type of advertising.

(Sorry if this annoys experts-exchange who are starting there own banner adverts!).
0
Comment
Question by:icd
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
dmethvin earned 400 total points
ID: 1829531
You can use a proxy server to filter out just about anything you like. Run the proxy server on your client machine and point the browser to it.

Randal Schwartz did a column in the February WebTechniques about writing an anonymizing proxy server in Perl, you could easily adapt that to filter out content in the page itself.  The Perl script and column is at
http://w3.stonehenge.com/merlyn/WebTechniques/col11.html

As you mention, the criteria for determining ads is a bit heuristic. Good bets are any image URLs with the following words: ad, ads, advert, advertisement, doubleclick, focalink.


0
 
LVL 5

Author Comment

by:icd
ID: 1829532
That looks pretty good but as far as I can tell it will only work on a UNIX system. Correct me if I am wrong.

I would really like an approach that could be run on my own PC. I will have to see if the technique will work with Win32Perl:Internet
0
 
LVL 5

Author Comment

by:icd
ID: 1829533
Sorry for the delay in grading.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question