Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / July 2006



Tip: Looking for answers? Try searching our database.

file outside public_html

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leszek - 31 Jul 2006 22:21 GMT
Hi.
Is it possible to pass to a script a path to a file which is outside
public_html?

I have this function :

function okno( film ){
gora = screen.height/2-315;
lewy = screen.width/2-350;
oknoFilm =
window.open(film,'oknoFilm','menubar=no,location=no,toolbar=no,scrollbars=no,status=no,resizable=yes,width=700,height=630,left='+lewy
+',top='+gora +'');
oknoFilm.focus();
}

film should be a path to html file...

but when later i'm trying to call
okno('/home/ab17661/domains/szachy.biz/filmy/film2.html');
but i'm getting IE error "file not found"

When the file was in public_html folder
okno('filmy/film2.html');
was working fine

I need to make sure that only registered users will access this file that's
why i put it outside public_html

Could you help me?

Thanks.
Leszek
bobzimuta - 31 Jul 2006 22:53 GMT
> Hi.
> Is it possible to pass to a script a path to a file which is outside
> public_html?

That invalidates the purpose of a web server. Your script (or any
agent) requests files from the server. If the file is not within the
domain of publicly available files specified to the server, you're SOL.

Rather, you need to implement some kind of user authentication (basic,
digest, ip restriction, custom server-side script and database) that
prevents unauthorized users from accessing the content.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.