You are hereForums / Support / Squid + Adzapper + VideoCache <--- not working

Videocache 1.9.5 is available now. This version improves support for logging and fixes video caching problems for various sites like Vimeo, Break, Tube8 etc due to change in URL patterns. Also, from this version onwards, UrlGrabber has been removed from dependencies. Check Changelog for details. If you have purchased version 1.9.x previously, you can claim free upgrade by contacting using Contact Link. Please mention the email address using which you purchased Videocache. New users proceed to download page right now, secure your copy and enjoy caching :-)

Squid + Adzapper + VideoCache <--- not working


6 replies [Last post]
Anonymous
Squid + Adzapper + VideoCache <--- not working
Printer-friendly versionSend to friend

I had tried many ways to have wrapzap or zapchain to work, none of them ever work, I cannot get videocache and adzapper work. If I get the videocache to work the adzapper is not working.

Debian:/etc/squid# ps ax | grep squid
3510 ? Ss 0:00 /usr/sbin/squid -D -YC
3512 ? S 0:00 (squid) -D -YC
3517 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3518 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3520 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3521 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3522 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3523 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3524 ? Ss 0:00 /usr/bin/perl /usr/bin/zapchain /usr/bin/squid_redirect /usr/share/videocache/videocache.py
3526 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3528 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3530 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3532 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3534 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3536 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3538 ? S 0:02 /usr/bin/perl -w /usr/bin/squid_redirect
3559 pts/0 R+ 0:00 grep squid

Anonymous (not verified)

This is the snip last part of my squid.conf

url_rewrite_children 7
acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplayback\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplay\?
acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/get_video\?
acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/
acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
acl videocache_allow_dom dstdomain .mccont.com dl.redtube.com .cdn.dailymotion.com
acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
url_rewrite_access deny videocache_deny_url
url_rewrite_access allow videocache_allow_url
url_rewrite_access allow videocache_allow_dom
redirect_program /usr/bin/wrapzap
redirector_bypass on

Anonymous (not verified)

This is my wrapzap

zapper=/usr/bin/squid_redirect
videocache=/usr/share/videocache/videocache.py

ZAP_MODE= # or "CLEAR"
ZAP_BASE=http://adzapper.sourceforge.net/zaps # a local web server will be better
ZAP_BASE_SSL=https://adzapper.sourceforge.net/zaps # this can probably be ignored

ZAP_PREMATCH= # pathname of extra pattern file
# for patterns to preempt the stock
# zapper
ZAP_POSTMATCH= # pathname of extra pattern file
# for patterns in addition to the
# stock zapper; this is the one to
# which you should add new ads
ZAP_MATCH= # pathname of extra pattern file
# for patterns to use instead of the
# inbuilt pattern list
ZAP_NO_CHANGE= # set to "NULL" is your proxy is Apache2 instead of Squid

STUBURL_AD=$ZAP_BASE/ad.gif
STUBURL_ADSSL=$ZAP_BASE_SSL/ad.gif
STUBURL_ADBG=$ZAP_BASE/adbg.gif
STUBURL_ADJS=$ZAP_BASE/no-op.js
STUBURL_ADJSTEXT=
STUBURL_ADHTML=$ZAP_BASE/no-op.html
STUBURL_ADHTMLTEXT=
STUBURL_ADMP3=$ZAP_BASE/ad.mp3
STUBURL_ADPOPUP=$ZAP_BASE/closepopup.html
STUBURL_ADSWF=$ZAP_BASE/ad.swf
STUBURL_COUNTER=$ZAP_BASE/counter.gif
STUBURL_COUNTERJS=$ZAP_BASE/no-op-counter.js
STUBURL_COUNTERHTML=$ZAP_BASE/no-op-counter.html
STUBURL_WEBBUG=$ZAP_BASE/webbug.gif
STUBURL_WEBBUGJS=$ZAP_BASE/webbug.js
STUBURL_WEBBUGHTML=$ZAP_BASE/webbug.html

STUBURL_PRINT= # off by default, set to 1

export ZAP_MODE ZAP_BASE ZAP_BASE_SSL ZAP_PREMATCH ZAP_POSTMATCH ZAP_MATCH ZAP_NO_CHANGE
export STUBURL_AD STUBURL_ADSSL STUBURL_ADJS STUBURL_ADHTML STUBURL_ADMP3 \
STUBURL_ADPOPUP STUBURL_ADSWF STUBURL_COUNTER STUBURL_COUNTERJS \
STUBURL_COUNTERHTML STUBURL_WEBBUG STUBURL_WEBBUGJS STUBURL_WEBBUGHTML \
STUBURL_PRINT STUBURL_ADHTMLTEXT STUBURL_ADJSTEXT

exec /usr/bin/zapchain "$zapper" "$videocache"

Anonymous (not verified)

When I remove the videocache line, my adzapper work, but when I put it back, my adzapper is not working. Can anyone enlighten me.

Cameron Simpson (not verified)

I suspect these lines:

url_rewrite_access deny videocache_deny_url
url_rewrite_access allow videocache_allow_url
url_rewrite_access allow videocache_allow_dom

cause your trouble, if what you see is no zapped ads.

I imagine that in a purely-videocache install, these lines pass only
specific URLs to the video cache redirector plugin, so that most URLs
pass happily by the cache and are accessed normally.

However, by using these lines with the zapchain stuff you are also arranging
that non-video URLs do not pass through the adzapper either. And so the
zapper doesn't see anything. (Well, it will see videos, but it will be
leaving them alone.)

You should try commenting out ALL the "acl videocache_*" lines and the
three url_rewrite_access lines above.

admin's picture
Offline
Joined: Nov 2 2008

Cameron Simpson,

Very nicely illustrated. I agree with your point. Though I have never used adzapper personally but whatever you have pointed out makes sense.

I hope this will help mynullvoid fix his problem.

Thank You!

Offline
Joined: Jul 1 2009

Yes, Cameron Simpson had save my day.... I guess many of us who use adzapper also find this as solution to our problem. Thank you guys

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Buy Now

Videocache Bundle (RPM and tar archive) is available. Secure your copy now by clicking the button below.
No. of Servers?
For details, check this page.

Recent comments

Spread it

Thank you for spreading the word!

Who's online

There are currently 0 users and 73 guests online.