Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - sugesstion to block leeching
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

sugesstion to block leeching

 Post Reply Post Reply
Author
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Topic: sugesstion to block leeching
    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!!


Back to Top
hotconcrete View Drop Down
Newbie
Newbie


Joined: 19 August 2003
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote hotconcrete Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2003 at 5:10pm
that's a cool idea, i just wanted to say i like how you figured it out
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2003 at 4:01am
well simple.. if something is made unique everyday.. its hard to follow it..

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
Bliss View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2003
Location: United States
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bliss Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post 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..


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.