Print Page | Close Window

sugesstion to block leeching

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5082
Printed Date: 29 March 2026 at 6:47pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: sugesstion to block leeching
Posted By: the boss
Subject: sugesstion to block leeching
Date Posted: 17 August 2003 at 3:28am

convert todays date to string and remove invalid characters not allowed in a file name.. use the resultant string as a name for ur folder containg the images...

in the asp pages.. set the image folder path as a variable "myimagepath" which should be manipulated using the current date converted to a string with all invalid characters removed...when calling images in ur pages.. the code shall be something like this

<%=myimagepath%>/image001.jpg

then put a code in the global.asa file to do the following

1. get todays date and subtract 1 from it
2. then covert it to string and remove all invalid characters..
3. next look for a folder name which matches the resultant of manipulation done in step 2

4. if the folder is found.. rename it to todays date converted into a string and all invalid charcters removed

5. if the folder is not found of yeterdays date.. then resume next

this way u will have a unique folder name everyday and if someone leeche out images / file form ur server.. it wont be for any long than a day !!


lemme know if this worked or not!!



-------------
http://www.web2messenger.com/theboss">



Replies:
Posted By: hotconcrete
Date Posted: 19 August 2003 at 5:10pm
that's a cool idea, i just wanted to say i like how you figured it out


Posted By: the boss
Date Posted: 20 August 2003 at 4:01am
well simple.. if something is made unique everyday.. its hard to follow it..

-------------
http://www.web2messenger.com/theboss">


Posted By: Bluefrog
Date Posted: 23 August 2003 at 10:53am
This sort of stuff sound like it's for a warez site, but whatever... I was thinking about it, and (unrelatedly) I bought some software online. Anyways, they had a similar type system where my order ID was the directory where I downloaded from. Now that would be really useful for me. Now I'll either look for a script for that or try to figure out how to create virtual directories on the fly...


Posted By: Bliss
Date Posted: 23 August 2003 at 5:12pm
I don't see why it should be for a warez site, you could use it to stop people from hotlinking your images, thus saving some bandwidth.

-------------
Hehehe...


Posted By: the boss
Date Posted: 24 August 2003 at 6:34am

now anjy one intrested to do that in real. sh*t i got no time neighter good ASP knowledge to write those thing as optimized and error free as much possible..



-------------
http://www.web2messenger.com/theboss">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net