473,792 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaScript in Password Protected Folder?

Hi All,
I am trying to hide my JavaScript source. The method I chose was to
keep all the important source in a password protected folder, and then
use a SRC="folder/script.js" to include it in my code. This way, the
script will run, but the user will be unable to view the included
code. Or so I think :).

I have tried this method, and it seems to work. However, I would like
to know if you can see any problems with this. For instance, can you
think of a way to bypass this and get at script.js? Can you foresee
any problems that would arise as a result of keeping scripts behind
password protected folders? Any other security concerns?
Thanks in advance.
Jul 20 '05
22 2247
Richard Cornford wrote:
Thomas 'PointedEars' Lahn <Po*********@we b.de> wrote [...]
If you don't believe that RFC 1036 (Standard for Interchange of
USENET Messages) is applicable to Usenet posts


I have never stated that.


You stated that the header I quoted was "perfectly OK according to
the standards" when it is structurally incorrect according to RFC
1036, which implied that you didn't believe that RFC 1036 was a
standard that should be applied to a Usenet post.


Misunderstandin g. I always referred to the
formatting, not the structure. See below.
But you have, again, nothing quoted that states that wrapped
References are not OK according to any standard.


Why would I want to quote anything that stated that wrapped
References headers are not OK? That would have no baring on
the number and sequence of message IDs in the References
header that I was criticising.

You didn't by any chance not bother to read what I had written
(twice) [...]


Oh, in fact I *did*. But sorry, you've lost me. Let us recapitulate:

We have an OP:

| From: xm****@yahoo.co m
| Message-ID: <4a************ **************@ posting.google. com>
(no References header)

According to the quotes, beside others, it was replied to with

| From: Randy Webb <hi************ @aol.com>
| Message-ID: <Ao************ ********@comcas t.com>
| References: <4a************ **************@ posting.google. com>

and

| From: "Richard Cornford" <Ri*****@litote s.demon.co.uk>
| Message-ID: <c0************ *******@news.de mon.co.uk>
| References: <4a************ **************@ posting.google. com>

and

| From: StanD <St**********@m ail.forum4desig ners.com>
| Message-ID: <St**********@m ail.forum4desig ners.com>
| References: <4a************ **************@ posting.google. com>
| <c0************ *******@news.de mon.co.uk>
| <40************ *********@news. xs4all.nl>
| <Ao************ ********@comcas t.com>
(no word-wrap!)

which you replied to with

| From: "Richard Cornford" <Ri*****@litote s.demon.co.uk>
| Message-ID: <c0************ *******@news.de mon.co.uk>
| References: <4a************ **************@ posting.google. com>
| <c0************ *******@news.de mon.co.uk>
| <40************ *********@news. xs4all.nl>
| <Ao************ ********@comcas t.com>
| <St**********@m ail.forum4desig ners.com>
(no word-wrap either)

In the above posting, you stated that

| [StanD's] posting software appears to exhibiting faulty behaviour in
| its handling of the "References " header in [StanD's] postings.

which I have come to recognize as truth, and

| It has sent (split across lines at the location of spaces to avoid
| uncontrolled wrapping):-

which is wrong anyway. Now, on closer inspection, I fail to observe
wrapped References here, so it is likely that your news client software
does this by default (which is perfectly OK, nevertheless it makes the
above statement wrong). See also Google Groups where there is no
wrapping either:

http://groups.google.com/groups?selm...&output=gplain

(But that is only for the records.)

| References: <4a************ **************@ posting.google. com>
| <c0************ *******@news.de mon.co.uk>
| <40************ *********@news. xs4all.nl>
| <Ao************ ********@comcas t.com>

And then you cited from the RFC (I think I already know pretty well).
So I, indeed, falsely assumed that with the RFC quote and your trailing
comments you only try to prove that it is not standards-compliant to
wrap References. Alas, I overlooked that you also wrote:

| And if intended to be a response to any of the other contributors to
| date would be only the References header from that "original message"
| (singular) followed with a space and the message ID of that message.

(please note that English is not my native tongue) and thus I correctly
argued (but there was nothing to argue for in this context, since there
was in fact no dissent about it) that wrapped References are in fact
standards-compliant. *I am sorry, my bad.*

So let us be this a draw, OK? If you would have argued more exactly for
what you were trying to prove (and, ex post facto, not assumed that your
client software leaves the References formatting unchanged) and if I
would have taken more care in reading your postings (and, ex post facto,
all headers involved), this misunderstandin g would most certainly not
have arised in the first place.

JFTR: The References header quoted above is in fact incorrect, but
not for its wrapped M-IDs (formatting) but for its wrong order and
occurrences of M-IDs (structure). The web interface used for posting
(www.Forum4designers.com gateway) is malfunctioning, I think neither
of our news client software is in this regard. (But note that my
software nevertheless displayed the forum4designers .com posting as
followup to the OP, as it was intended :-) Randy may find this
interesting, as he is also using a mozilla.org product, but of an
earlier release version.)
\V/ Live long and prosper

PointedEars
Jul 20 '05 #21
Thomas 'PointedEars' Lahn wrote:
<snip>
In the above posting, you stated that

| [StanD's] posting software appears to exhibiting faulty behaviour
| in its handling of the "References " header in [StanD's] postings.

which I have come to recognize as truth, and

| It has sent (split across lines at the location of spaces to avoid
| uncontrolled wrapping):-

which is wrong anyway. Now, on closer inspection, I fail to observe
wrapped References here, so it is likely that your news client
software does this by default (which is perfectly OK, nevertheless
it makes the above statement wrong). ... <snip>

That is probably the origin of your misconception. My statement was
intended to indicate that I had wrapped the reported header, and explain
how I had gone about it (replacing spaces with newlines). I wrapped it
myself because I knew that my newsreader would attempt to wrap it a 72
characters if I did not, and I did not want it splitting the message IDs
as they were important to the point I was attempting to make.

<snip> (please note that English is not my native tongue) ... <snip>

Fair enough. Though accompanying your assertion of nonsense with an
explanation of why you thought it nonsense would have allowed me to
explain that than wrapping of the header (or lack thereof) was not the
issue.
... . The web interface used for posting
(www.Forum4designers.com gateway) is malfunctioning,
They claim to have fixed it. Time will tell. But forum4designers are not
the only site out there using this software so it will be a recurring
problem for a while yet even if forum4designers ' version is now working
properly.
I think neither of our news client software is in this
regard. (But note that my software nevertheless displayed
the forum4designers .com posting as followup to the OP,
as it was intended :-) Randy may find this interesting, as
he is also using a mozilla.org product, but of an earlier
release version.)


Given the 4 possible places in the thread that the message could have
been inserted by a newsreader, I could see three likely possibilities:
Recognising that the header was meaningless and placing the response as
a reply to the OP. Recognising an initial sequence of OP then my reply,
then giving up when the chain came to an end and placing it as a reply
to me. Or, working back from the end and placing the message as a reply
to Randy. All seem reasonable ways of handling a header malformed in
that way.

It all goes to show what sort of wrong thinking there is in the minds of
the authors of the posting software, who seem to think that an
unthreaded web forum style interface can be sensibly integrated with
Usenet.

Richard.
Jul 20 '05 #22
> Java is the only other possibility that I can see, but I have no idea
of its future -- especially on the Windows platform.
You can download the Java runtime for free from Sun.

Furthermore,
since this application is targeted towards end users, I don't want
people to have to go through any hassle to run it -- and this includes
installing additional components.
This is true.

I read where Microsoft was planning in the future to ship the Sun
runtime library with some future version of Windows. I think I read it
in the papers. I couldn't find a reference to this on the Microsoft
web site. Could have been a legal dodge.

Oh well, if it weren't a challenge, it wouldn't be fun :D

You could patent anything new or somewhat new.

Brian

Thanks.

Jul 20 '05 #23

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1607
by: netsurfer | last post by:
hi..I'm working on a project that requires files to be password protected on a UNIX based site. The people that own the web site want to be able to change the password every so often. Unfortunately, I have restricted access only to FTP so I really can't log in to any kind of Administrative Console or Admin Panel and see if there are folders that can be password protected and then have passwords changed on them. The people I'm contracted...
3
1754
by: Ronan Dodworth | last post by:
Hi there I'm having a little bit of a problem with my customvalidator control. The problem is the javascript runs fine on my local webserver IIS but not when I post it to the web hosting server. As it is client side scripting I'm suprised that this is the case as I'm using the same browser IE6 and the same machine to access both. I've included the code below. Can anyone help . I've tried lowering all the security settings for intranet...
2
1813
by: DanB | last post by:
I am using VB DotNet Std Edition and am writing a web application that needs to read and write to an password protected database. The mdb files reside in a folder (fpdb) under the localhost (c:\inetpub\wwroot) Within the IDE I can view the data using the server explorer and I use that same oledb connection for the web form. I have tried accessing a non-password protected db in the same folder using
4
7571
by: kthiagar | last post by:
Hi I am trying to connect to a password protected access file from VB.NET. I have no problem in connecting to Access, if I remove the password. This is what I am doing: In the server explorer, I choose "Add a connection" Choose "Microsoft Jet 4.0 OLEDB Provider" in the provider tab Selected the access file in the next tab Left Username as Admin and typed the password. Now when I try to test connection, I am getting this error message:
1
1634
by: Tull Clancey | last post by:
Hi all. I have an app that needs to create a folder off the installation folder, this is not a problem. But, I need to password protect this folder so only the application can get access to the data stored there. Of course a user can add a password to a foler, but how can I do this from within my code, then how would I open a file within this password protected folder?
0
1365
by: sonicpulse | last post by:
Hello, I made a program that iterates through all the pdf's in a folder and opens them and prints them. However, all of these pdf's are password protected, so I have to manually type in the password many times. Is there any way to open a password-protected PDF with the password entered through python? Thanks
0
1098
by: vien | last post by:
hi there i'm vien i'm looking for a vb code that can make folders in windows explorer to be password protected sothat if some one want to open the folder, delete the folder,or move the folder; the folder should ask for a password. The folder should be accessed only for those who have that password. is any body has any idea? thanks for help
3
2490
by: Charlotte | last post by:
Hello, info: I'me a rookie with IIS I have on a WinXP Pro the IIS installed, so I can test some pages before uploading to the hostserver online on the hostserver is a possibility (with the program PLESK) to make a directory secure (to access a page in that directory, you have to give a username and a
3
9215
by: fndofu | last post by:
I recently protected(made protected and invisible) a folder with "FILE and FOLDER protector" software....But unfortunately i forgot the password that i used........... Cud u please tell me how to access the files in the folder... The name of the folder is "new" and it was in "D:\" drive..Now i need to access the hidden folder(Show hidden folder's option didn't work)...I h'v heard that using some simple commands v can easily unprotect...
0
9518
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10430
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.