Web Hosting Talk







View Full Version : How to create unique download links?


Hiranmanu
12-21-2004, 01:36 AM
Hello there people. I want to create or make a script which will work like this. Basically the problem I have right now is alot of Hotlinking and I have tried .htaccess files etc but they are useless to protect from l33chers. I want to make a script that when the person clicks on the download link it is a unique link that opens and will only be valid for about 10 seconds until the link will expire.

Some places that use these types of systems is http://www.filefront.com

Something like filefront would be excellent and that is the kind of thing I am looking for


If anybody knows of scripts like these made any help would be appreciated


Thanks alot

gRF
12-21-2004, 11:13 AM
I think I saw something like that - search hotscripts.com

e-zone
12-21-2004, 12:10 PM
There is a antileech script here in php, dont know what you need ?

http://www.hlscripts.com/

allso dont know if you tryed this htaccess


Options +FollowSymlinks

# Turn on mod_rewrite's rewrite engine
RewriteEngine On
RewriteOptions inherit
# HTTP requests must come from the following domains
RewriteCond %{HTTP_REFERER} !(heavybrick\.com|lunabyte\.com|).*$ [NC]
# Deny all requests for image files that don't come from the above domains.
# (they get sent http://forum.heavybrick.com/YaBBImages/redx.gif instead)
RewriteCond %{REQUEST_URI} !^/redx.gif [NC]
RewriteRule .*\.(jpg|JPG|gif|GIF|png|PNG|jpeg|JPEG)$ http://www.heavybrick.com/redx.gif [R]

This is for image protection but i cant see why you shoulden be able to modify abit in the code and use for zips mp3's etc.. and then they could be sent to your frontpage if they dont click from your domain (inside)

Hope it helps ;)

ryno267
12-21-2004, 02:57 PM
20 bucks huh...

shouldn't be that hard to write a php/mysql script that stores the file link with a random number to "mask" it...

or the .htaccess may be an option as e-zone said.