i have a music website.. and many of persons use my links in their site..
i have login registration system in my site also.....
can any one tell me that how can i secure my links
i mean whenver some other person want to put my link into their site.. then there would not b download any thing....
coz my bandwidth is very much used if ppl used my links.. so please guyz if any one can tell me how can i secure my links.. that ppl cant uses into their sites.....
any one can write the code ????
How Can I Secure My Links ?
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
I would probably keep all your music outside the web directory, so only YOUR script has access to the music via header(), as burrito suggested, in combination with readfile().
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
It sounds like you're talking about Hot Linking. Most hosts provide support for Hot Link protection which means that certain files can only be accessed from your own server. If someone links to a file from elsewhere you just get redirected.
Apache supports it as far as I know but I've never set it up myself.
Apache supports it as far as I know but I've never set it up myself.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
True.. but I like to get my hands dirty with a download script, because its much easier to handle statistical information without having to read through the great logs of apached11wtq wrote:It sounds like you're talking about Hot Linking. Most hosts provide support for Hot Link protection which means that certain files can only be accessed from your own server. If someone links to a file from elsewhere you just get redirected.
Apache supports it as far as I know but I've never set it up myself.