Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 30th, 2001, 09:20 PM
gargoyle gargoyle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 14 gargoyle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
let's imagine there is some file u want to hide on yar server but it needs to b accessable by a script.
so if anyone would find out it'S exact location typing the files url into a browser or ftp client he just should get an error message but accessing it using yar script everything is well.
how to set up such a directory and how must the server b configured to do so?
chmod seems to b not allowed by the hosting sevice
htaccess hmm how to prevent the visitor to get the dialog or how to grab it by the script (and if so how to make sure u don'T have to hardcode the user pswd into it)?
scripts run by http request r handled like "other" users so the files must have an xx6 or xx7.
any ideas would b highly aprecciated sql is no option (non ascii files).

Reply With Quote
  #2  
Old May 5th, 2001, 06:18 PM
twmcmahan twmcmahan is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: St. Louis, Missouri
Posts: 10 twmcmahan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Here's how i've resolved this issue.

I've put all the scripts that I want to be private in a non-web-accessable directory that has me set as the owner, and the web server user (usually "nobody") set as the group. Now, my web server has access to these files, but you can't get to them via the web. Your script can require("/path/to/script.php"); the files, and the users can never see the contents.

Reply With Quote
  #3  
Old May 6th, 2001, 01:08 PM
gargoyle gargoyle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 14 gargoyle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yep, this seems to b the only possibility that really makes sense.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > folder only scriptaccessable?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap