This is a discussion on "Read only from File....." within the JavaScript Forum section. This forum, and the thread "Read only from File..... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Read only from File.....
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Read only from File.....
Ok, heres the deal. I have been told, and I have seen people that have no access folders in their FTP program. The only way that you can get into these folders are if a page recalls things off of them. For example a HTML file pulling a .JS file out of the passworded folder. Not, if the user then goes in and types the url for the JavaScript it sends him to an error page that says we are sorry but this is password protected. How do I make such a thing, or is this something that only web hosts can offer?
|
|
|
|
|||
|
I believe this is done using .htaccess files on Unix systems... Not sure about windows systems... probably just NT permissions?
Just do a quick search on google for "htaccess" |
|
|||
|
I've done it with ASP but don't know anything about using jscript for it.
|
|
|||
|
I dont want to do it with JavaScript, I want to use it hide my javascript
|
|
|||
|
Hide your javascript?
Kulegamr, it has to be accessible to the browser for you to access it at all.... no? In which case anyone can see it anyway. The only way you could "hide" it would be to get a server-side script to include it when certain conditions are met. |
|
|||
|
Hrmm... well. WHat it does is it can only be read through another file. So if you type in the url it tells you to buzz off or something. It wont give you acess to that folder. Also, the JavaScript would be hidden in this folder and the HTML could read it no problem. I guess what I am having troubles understanding is how I can make a folder that can only be read by an HTML file. Dont know how to do that. Maybe it's server side scripting I have to know to password protect a folder.
|
|
|||
|
Nothing is "read by the file" Kulegamr. The HTMl is read into the browser, then the other parts of it are loaded by the browser, eg - The images and JS files. So the user still downloads them and they will sit in temporary internet files and HAVE to be accessible.
|
![]() |
| Tags |
| read, file |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| file read | alexgeek | PHP Forum | 18 | Aug 19th, 2007 19:49 |
| Help with function to read external file | jwhite68 | Flash & Multimedia Forum | 4 | Jul 6th, 2007 15:18 |
| Creating a log file (text file) and an XML file using XSL | kdelacruz | Other Programming Languages | 1 | Nov 4th, 2006 21:12 |
| How make Word file same as html file in ASP | humair | Classic ASP | 5 | Sep 24th, 2003 14:35 |