Adding banner to webpage
-
hello :),
is it possible with squid/squid3 to add banner in the top of every webpage
that user opens? i have a hotspot and in the top of users screen i want to
write "internet access is sponsored by …" is it possible?
i found this:
http://squid-web-proxy-cache.1019090.n4.nabble.com/Display-company-Banner-with-SQUID-td1036552.html
can you tell me how to do it?ps. sorry for my bad english :D
-
Probably possible if redirect to self page-container.
-
self page container? can you please explain?
-
self page container? can you please explain?
My idea is:
Write PHP page myBanner.php and put it to pfSense www catalog
Add squidGuard destinations myBanner
- Filter Adware by specific attribute (url as ad, adХХ, banner and etc)
- Redirection setup to http://pfSenseIP:Port/myBanner.php?url=%u (http://www.squidguard.org/Doc/redirect.html)
Set deny this myBanner rule in ACL
Page myBanner.php must make you self banners
-
$Img1 = "http://t1.gstatic.com/images?q=tbn:ANd9GcTAsTI-8z4O3D42H_OWG2fcJEm6AVxqu0-7H0Q7OArTtBDYgDR5";
$Alt1 = "[advertisement] nesto";
$Url1 = "http://www.google.com";$Img2 ="http://www.pro-dezign.com/images/banner.jpg";
$Alt2 = "[advertisement] pro-dezign web development";
$Url2 = "http://www.pro-dezign.com/index.html";$num = rand (1,2);
$Image = ${'Img'.$num};
$Alt = ${'Alt' .$num};
$URL = ${'Url'.$num};Print "["; ? >
and just place the PHP include on your page where you want the banner rotator.]("".$URL."")