hiding download exe and mp3 files
Is there a code to hide a download file, such a music, so other people cant link to those files ? rather than me having to change the source code weekly ?
such as: yoursite.com/coolsong.mp3
and
such as: yoursite.com/mp3player.exe
Dave Barnad
www.ranks1.com
Christian resource
Roo posted this at 02:07 — 16th January 2006.
She has: 840 posts
Joined: Apr 1999
You could put them in a password protected directory.
With many hosts you can do this through your control panel.
If you can't you could use htaccess/htpassed
Roo
Greg K posted this at 06:08 — 16th January 2006.
He has: 2,145 posts
Joined: Nov 2003
Or if you want people from your own site to be able to click on a link to them, but not allow others to post the same link, you can write a PHP program that checks the referer to make sure it came from your own site.
However you will want to let people know that this is in place in case they either by choice have referers disabled, or they run virus software that blocks referers.
-Greg
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.