hemustvthemes Posted June 23, 2006 Share Posted June 23, 2006 HiI am new to ASP and I am just finishing a course on it.I still want to know how I can use a querystring to link music files I have made so it can stop people linking the files through other sites.Hope you can helpThanksHemustvthemes Link to comment Share on other sites More sharing options...
justsomeguy Posted June 26, 2006 Share Posted June 26, 2006 You can either set up the webserver to not allow outside links to specific files, or you can check the referer to see if they are coming from another site. Do a search on ASP referer to see how to do that. Link to comment Share on other sites More sharing options...
hemustvthemes Posted June 28, 2006 Author Share Posted June 28, 2006 HiThanks for your help. I may do that. What I am wondering how to do it connect to files through a query string apart from a database.ThanksHemustvthemes Link to comment Share on other sites More sharing options...
justsomeguy Posted June 28, 2006 Share Posted June 28, 2006 I'm not sure what you're asking. Link to comment Share on other sites More sharing options...
hemustvthemes Posted June 28, 2006 Author Share Posted June 28, 2006 HiLike this link below, but in ASPhttp://www.thesimpsonseh.com/index.php?page=wallpaperThanksHemustvthemes Link to comment Share on other sites More sharing options...
justsomeguy Posted June 28, 2006 Share Posted June 28, 2006 Are you talking about the filename included in the querystring? What question do you have about that? The way that page works, the page that they link to probably records some statistics about the file, like how many times it's been downloaded or something, and then redirects the user to the file itself. Link to comment Share on other sites More sharing options...
hemustvthemes Posted June 28, 2006 Author Share Posted June 28, 2006 Yes. I want to know how to how to do the records thing you mention above and connect them to it. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 28, 2006 Share Posted June 28, 2006 They can either store the file information in some log file, and increment a counter or something like that, or it's probably easier to look it up in a database. They can look up a record in the database for that filename, and increment the counter on it or add a new record in a database that lists the user's IP, date and time, which file, etc. It's really your choice what you want to keep track of and how you want to do it. To redirect to the file, they can use response.redirect to send them to the appropriate file, that's probably the easiest way. Link to comment Share on other sites More sharing options...
hemustvthemes Posted June 29, 2006 Author Share Posted June 29, 2006 Thank you very much. Have you got any tutorials that I could use?Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted July 3, 2006 Share Posted July 3, 2006 I don't think there are any tutorials specifically about that. You will need to get the file name from the query string, do whatever you want to do with the database, if anything, like statistics, and then do a response.redirect to wherever the file is. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now