Forum Moderators: phranque

Message Too Old, No Replies

domain oriented question

.htaccess related

         

jason_m

2:41 pm on Jun 8, 2010 (gmt 0)

10+ Year Member



hello,
i thought i had completed what i wanted. i planted a .htaccess file in my parent dir which made all sub dirs forbidden from view.

now, i have began to hide some custom scripts that i have built in sub folders.

lets say dir & file: "/private/subdir1/file.js"

if i try to externally access "mysite.com/private/subdir" i get an access forbidden. great! exactly what i want.

now, let's say i go to "mysite.com/private/subdir/file.js", there is no access forbidden and the file comes up.

is there a way to disable this from occurring or is this not doable? is there any way to have truly "private" files that you website uses as referenced scripts?

basically, i do not want visitors to be able to pull up file.js. is this possible to do?

thanks!

jdMorgan

6:04 pm on Jun 8, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is file.js a client-side JavaScript?

If so, it must be fetchable by the browser if you want it to run...

Otherwise, you might as well simply delete that file (which is essentially the same thing as what you're trying to do.)

Jim