Current location: Hot Scripts Forums » General Community » The Lounge » What's the "Best Way"


What's the "Best Way"

Reply
  #1 (permalink)  
Old 08-07-03, 12:51 PM
finger51 finger51 is offline
New Member
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
What's the "Best Way"

howdie~

So I've been noodling with my linux machine (SuSE) for a few months now. I've managed to get samba, apache and qmail all working. I'm pretty happy so far. I want to beef up the security to my website though.

As it stands now, I have a link on my site which points to a samba share drive on a seperate windows machine. This drive contains all my music. The problem is, anyone who comes to my site can click this link and see/copy all of the files ala http. I'd really like a user/password dialog to popup whenever someone tries to get at my files.

I'm thinking a perl script(?), but I'm totally clueless as to how to write it, where to put it, and how to incorporate it into a hyperlink.

Or is perl even the 'best way' to do it? I wnat to try to get it to be as secure as possible without a) a client like ssh or ftp. b) streaming, I want to be able to copy the file to wherever I am. c) buying a new piece of hardware.
Reply With Quote
  #2 (permalink)  
Old 08-08-03, 03:04 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
if you use apache, you could simply use .htaccess security for it.
Reply With Quote
  #3 (permalink)  
Old 08-08-03, 02:02 PM
elToro elToro is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
.htaccess seems like the answer to me as well. Check this out: Comprehensive guide to .htaccess: Password protection
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 01:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.