Hey, i want to make a static url script, my mean is: I have for example in my server /data/FILE.RAR i want when people visit they will get everytime different link, for example www.site.com/012391230/FILE.RAR and the other one will get www.site.com/03219312930/FILE.RAR and so on... Any help?
you should : make a token for each user that visit download page, you should use a random algorithm. save it somewhere (database, session, ...) write a code (for example : download.php) to check the token and serve the file to user make rewrite rule (htaccess or ...) to say webserver to run download.php?token=abcd1234&file=test.exe when user request example.com/abcd1234/test.exe
Since i give service that just after someone feel something he get a file. I dont want that someone will do it and give the url for everyone, thats why im asking for help! Marco.
there are several ways, actually. this article may help: http://buup.mephir.com/read/ultimate-guide-to-url-rewriting