Read only from File.....

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Nov 22nd, 2003, 22:49
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Nov 22nd, 2003, 23:36
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Nov 23rd, 2003, 08:31
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I've done it with ASP but don't know anything about using jscript for it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Nov 23rd, 2003, 09:25
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
I dont want to do it with JavaScript, I want to use it hide my javascript
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Nov 23rd, 2003, 09:36
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Nov 23rd, 2003, 09:54
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Nov 23rd, 2003, 11:40
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Nov 23rd, 2003, 16:21
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Ohh.. Well so much for that. lol. Thanks for taking the time to point that out. I never thought about that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
read, file

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42