SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old December 8th, 2002, 07:10 AM
Horsetags Horsetags is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 4 Horsetags User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
where to put includes for security

Hi
Just learning and worried about hackers being able to see my Login information. I know the scripts 'include' this file, but don't these files reside in the root directory of the site?

Shows i don't know a lot :-) But i'm trying hard.

I have a names database and the visitor can check if their name is listed. (Thats the idea)

Thanks

Paul

Reply With Quote
  #2  
Old December 8th, 2002, 10:57 AM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 6
Outside your document root is the safest place. Check with your provider and see if they give you access to a folder outside the web root. If they don't, request it from them. Most of the legitiment web hosts out there are pretty flexible and thus will give you access to one of these folders....
__________________
~ Joe Penn

We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set?

Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you.




Reply With Quote
  #3  
Old December 8th, 2002, 12:08 PM
Horsetags Horsetags is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 4 Horsetags User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi
Thanks for that
I have a phpMyadmin directory that is password protected and i can password protect any directory that i make on my server space so i could put them in there but i'm not sure how to address the link.

At the moment it is
include ("./common.php");

If i put them in a directory do i have to address it like -

include ("http://www.cardsnscrolls.co.uk/newdirectory/common.php");

Where 'newdirectory' is password controlled.

Thinking about this though, i will have to provide the password for THIS directory in the original calling script to get to the common.php??

My head hurts.

If i have an index.html in the new (maybe unprotected) directory that has a redirect to something (say my site index.html), would that stop someone seeing my common.php that is in the same directory?

Sorry to be slow


Thanks

Paul
Thanks


Paul

Reply With Quote
  #4  
Old December 8th, 2002, 01:50 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
As long as you don't use any ECHO or print statements (or the like) in your common.php file, noone should be able to see anything!

Good luck,
Joe of 4Life
__________________
Check out 4Life today!

Reply With Quote
  #5  
Old December 8th, 2002, 03:02 PM
Horsetags Horsetags is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 4 Horsetags User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Joe

Will look

Reply With Quote
  #6  
Old December 8th, 2002, 06:31 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
you could also use a .htaccess file, and restrict all access.. php won't be affected by this because it doesn't request the files from the webserver
__________________
Best Regards,
Håvard Lindset

Reply With Quote
  #7  
Old December 9th, 2002, 02:34 AM
Horsetags Horsetags is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 4 Horsetags User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry to be slow, but where do they request the files from?

Thanks
Paul

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > where to put includes for security


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 | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway