Menu

#2 Special Redirection

open
nobody
5
2006-10-25
2006-10-25
uruiamme
No

Sometimes, a particular ad or image on a website could
be distasteful or problematic and need to be zapped in
a special way. I would propose that there be a way to
use a custom redirect, much the way Squid will already
deny access to a webpage... much the way the adzapper
will already redirect AD.JPG to ad-grey.gif, but
something that I can adjust on a case-by-case basis.

As you know, sometimes the "This ad zapped" images can
be cause a strange addition to certain websites. This
is why we can already bypass the standard adzapper
database by using the word "PASS" in front of the good
URL in the adzap-post.conf.

Here is a case in point. I need to allow users access
to a website in which the navigation menu (Home,
products, Contact us) has what amounts to something
inappropriate for that group of users. Normally
speaking, ads are merely zapped, and so can
inappropriate graphics. But in this circumstance, every
webpage on the site has a navigation menu which needs
to be edited and redirected to a custom graphic.

Here is what I would propose. In the config file, I
could enter:

PASS http://www.example.com/banner/\*
AD http://www.example.com/bannerad/\
*
CUSTOM_001 http://www.example.net/img/ugly-navbar.gif
REDIRECT_001 /usr/local/www/data/zaps/custom_001.gif

The last two items are referring to a custom ad zap,
with the redirector choosing a file from the local
apache directory where the adzapper's zaps are located.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.