Page 1 of 1
accessing files
Posted: Wed Jan 26, 2005 11:40 am
by psychotomus
how can I access files that are below a directory?
like
main folder -> second folder -> third folder
how could i access files in the second and main folder if theres a script in third folder?
Posted: Wed Jan 26, 2005 11:44 am
by feyd
moves back/up one directory level.
Posted: Wed Jan 26, 2005 11:44 am
by psychotomus
feyd wrote:moves back/up one directory level.
what about 2 directorys back?
Posted: Wed Jan 26, 2005 11:45 am
by feyd
Posted: Wed Jan 26, 2005 11:46 am
by psychotomus
How can I block someone from accessing back directorys?
Posted: Wed Jan 26, 2005 11:47 am
by feyd
make sure their permissions don't allow it. This can be done through .htaccess in the apache supported systems.. or through the ACL in Windows machines.
Posted: Wed Jan 26, 2005 11:49 am
by psychotomus
could you give me an example? should permissions be set on folder?
how could I use htaccess. also, if htaccess is used. is there a way to set the htaccess file so it can't be accessed from the folder?
Posted: Wed Jan 26, 2005 11:50 am
by feyd
http://httpd.apache.org/docs/howto/htaccess.html
have a read. Should also be able to do it through CHMOD.
Posted: Wed Jan 26, 2005 11:59 am
by psychotomus
what should I CHMOD the directory to? 750? 600?
Posted: Sat Jan 29, 2005 2:47 pm
by thegreatone2176
chmod will work or if you have some thing setup such as site.com/viewpage.php?page=
you can just str_replace . and / and they wont be able to go back directorys