View Full Version : Not directly about fwps, but please look.
newmodel
March 30th, 2001, 15:41
You know those scripts that free webspace providers use to automatically insert banner html into pages? Does anyone have a script like this? Thanks.
laurie
March 30th, 2001, 15:42
Was wondering myself - would be interesting to see in action if nothing else.
Also how does angelfire stop people leeching images, and fortunecity files?
lucifer
March 30th, 2001, 17:09
it's in the webserver config files. It's east to get the server to add a bit to all the html files it server and likewise it can refuse to serve .gif .jpg files unless you are already on the site. http headers sent with the request include the url that the browser is at. If that's not in the right domain then they don't serve you the file.
you could do a script that put in a banner in javascript and add it to the page but people would just cheat and remove them well I would anyway
laurie
March 30th, 2001, 17:54
The virtualave/hypermart banners were very easy to remove.
cowax
March 30th, 2001, 18:00
Originally posted by laurie
The virtualave/hypermart banners were very easy to remove.
ALL ads are easy to kill, of course thats why I use paid hosting and only hypermart to test my scripts out :P
newmodel
March 30th, 2001, 23:56
the purpose of the question is simply because I want to add some html to the top of my pages, but I don't want to have to go through every page and insert an ssi tag...
lucifer
March 31st, 2001, 04:58
write a simple perl script to add them for you ;-)
laurie
March 31st, 2001, 05:04
If someone does write a perl script that does this - I wouldn't mind grabbing a copy ;)
LeX
April 1st, 2001, 06:16
Originally posted by cowax
ALL ads are easy to kill
I thought bannerkillers.com wasn't able to kill WorldZone's adscript?
Cracker
April 1st, 2001, 11:59
Bannerkillers is almost dead. Read all about it here: http://bannerkillers----------/
Nick
April 1st, 2001, 15:07
Originally posted by laurie
If someone does write a perl script that does this - I wouldn't mind grabbing a copy ;)
I'm pretty sure you could easily do that. All you would have to do is have a perl script that goes through all the dir's and find certain files (ie- html, htm, shtml, etc.) and use the push function to add the code after a certain tag such as the body tag.
I could be completely wrong about this, but I did some fliping through my copy of Perl for Dummies and it looks possible...
Gayowulf
April 1st, 2001, 22:56
I had the same sort of thing, exept it wasn't perl for dummies. Problem is it would probably take too long and not even work anyways. Id rather someone else did it and told me how to do it properly or maybe even give me a copy ;)
Webdude
April 2nd, 2001, 15:08
Originally posted by LeX
Originally posted by cowax
ALL ads are easy to kill
I thought bannerkillers.com wasn't able to kill WorldZone's adscript?
They cant. The listed code for WZ doesnt work.
Xyzzy
April 2nd, 2001, 17:50
laurie, you could try something like this:
perl -pi.bak -e "s/<body bgcolor="#ffffff" text="#000000" id=all>/$&<!--#your SSI tag -->/g" *.html;
Of course, if your shell doesn't support wildcards you'll need to list each filename individually or get bash.
>Also how does angelfire stop people leeching images, and
>fortunecity files?
Referers.
Xyzzy
April 2nd, 2001, 17:55
Originally posted by Xyzzy
laurie, you could try something like this:
perl -pi.bak -e "s/<body bgcolor="#ffffff" text="#000000" id=all>/$&<!--#your SSI tag -->/g" *.html;
I didn't type in any of those attributes for the body tag, vB must have added them for some reason..anyways, you'll need to write the body tag exactly as it is in all of your HTML pages. On second thought, here's a better version that will work with any body tag:
perl -pi.bak -e "s/\x3Cbody[^>]*>/$&<!--#SSI tag-->/g" *.html
Hope this helps.
laurie
April 2nd, 2001, 18:35
OK.. thanks.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.