470,821 Members | 2,104 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,821 developers. It's quick & easy.

Script Required: Blocking Back Doors


Hi
I dont know how to program Javascript, but I am a web designer. I a
looking for an easy-to-use script (for a beginner) which i can use t
stop users from accessing my website using what I call (i dont know i
ive got the right term) "Back Doors": so that users cannot access m
pages without going through a pwd protected "front entrance".

e.g. my website is www.johnsmith.com and it has password protection o
the index.html file, to get to the homepage (home.html), which ha
links to the rest of the site. However, if someone goes straight to th
home.html file, bypassing the index.html file, my password gate i
useless.

Is there any way to either redirect anyone who goes to ANY page/file o
my site to the index.html homepage or just to block access to any page
except via a specific link from another page?

I dont know if im in the right forum, but from my (little) experienc
Javascript is used for passwords and that kind of thing, so I wa
checking if I could get some help here.

Cheer

Anonymous
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message32622.htm

Jul 20 '05 #1
11 1336
> I dont know how to program Javascript, but I am a web designer. I am
looking for an easy-to-use script (for a beginner) which i can use to
stop users from accessing my website using what I call (i dont know if
ive got the right term) "Back Doors": so that users cannot access my
pages without going through a pwd protected "front entrance".
Not possible. As JavaScript runs client side, any such attempt is easily
bypassable.
e.g. my website is www.johnsmith.com and it has password protection on
the index.html file, to get to the homepage (home.html), which has
links to the rest of the site. However, if someone goes straight to the
home.html file, bypassing the index.html file, my password gate is
useless.
Put the password protection on all the pages, and make it real password
protection.

http://www.allmyfaqs.com/faq.pl?Password_protect
I dont know if im in the right forum, but from my (little) experience
Javascript is used for passwords and that kind of thing, so I was
checking if I could get some help here.
Javascript is not used for any real security.
------------------------------------------------------------------------
Posted via http://www.forum4designers.com


Forum4designers appear to be passing off Usenet as their own work. I suggest
avoiding them. This is news://comp.lang.javascript.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2
In article <Gu**********@mail.forum4designers.com>,
Gu**********@mail.forum4designers.com enlightened us with...

Hi
I dont know how to program Javascript, but I am a web designer. I am
looking for an easy-to-use script (for a beginner) which i can use to
stop users from accessing my website using what I call (i dont know if
ive got the right term) "Back Doors": so that users cannot access my
pages without going through a pwd protected "front entrance".
Can't be done with client-side script.

e.g. my website is www.johnsmith.com
Your images are broken.
and it has password protection
on the index.html file,
I had no problems in any browser. Nothing asked for a password. A bunch
of links are broken though.
to get to the homepage (home.html),

Not Found
The requested URL /home.html was not found on this server.

------------------------------------------------------------------------
--------

Apache/1.3.14 Ben-SSL/1.41 Server at www.johnsmith.com Port 80
which has
links to the rest of the site. However, if someone goes straight to the
home.html file, bypassing the index.html file, my password gate is
useless.

Is there any way to either redirect anyone who goes to ANY page/file on
my site to the index.html homepage or just to block access to any pages
except via a specific link from another page?


You're using apache.
Use .htaccess.
Google it. That's OT here.

--
--
~kaeli~
If that phone was up your a$$, maybe you could drive a
little better!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #3
rf

"David Dorward" <do*****@yahoo.com> wrote in message
news:bu*******************@news.demon.co.uk...
------------------------------------------------------------------------
Posted via http://www.forum4designers.com
Forum4designers appear to be passing off Usenet as their own work. I

suggest avoiding them. This is news://comp.lang.javascript.


See the threads hapenning about this over in alt.html.critique.

They are even stealing stuff from the microsoft heirarchy.

Cheers
Richard.
Jul 20 '05 #4
"rf" <ma**********@the.time> wrote in message
news:po*****************@news-server.bigpond.net.au...

"David Dorward" <do*****@yahoo.com> wrote in message
news:bu*******************@news.demon.co.uk...
-------------------------------------------------------------------- ----Posted via http://www.forum4designers.com
Forum4designers appear to be passing off Usenet
as their own work. I suggest avoiding them.
This is news://comp.lang.javascript.


Apart from the misrepresentation of the content of the
www.forum4designers.com site as a service that they are providing rather
than admitting that it all originates in Usenet newsgroups,
www.forum4designers.com is also a very bad place to read
comp.lang.javascript as they are re-formatting the content of the
newsgroup posts and loosing all of the indentation in the presented
code.

Generally the regular posters to this group put quite a bit of effort
into presenting well-formatted code, indented to make its structure
apparent to the reader. They also (seemingly universally) promote the
consistent indentation of code blocks as a "best practice" in code
authoring.

But the way that comp.lang.javascript is being presented on the
www.forum4designers.com site makes it look like starting each line of
code at the left margin is common, acceptable and normal practice. (Or
givies the impression that all the code presented on the group was
authored by amateurs who don't understand haw code should be written.)

I am also not very happy to see:-

<quote cite="http://www.forum4designers.com/forum22.html">
Forum Rules:
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts
<quote>

-at the foot their pages as they are not the guidelines for positing in
this group and may give users of the site the impression that they can
disregard section 2.3 of the FAQ.
See the threads hapenning about this over in alt.html.critique.

<snip>

I like the way that alt.html and alt.html.critique appear to have
decided to react. I wonder how long they will keep it up. :)

Richard.
Jul 20 '05 #5
JRS: In article <bu*******************@news.demon.co.uk>, seen in
news:comp.lang.javascript, Richard Cornford
<Ri*****@litotes.demon.co.uk> posted at Sat, 17 Jan 2004 11:52:58 :-
"rf" <ma**********@the.time> wrote in message
news:po*****************@news-server.bigpond.net.au...

"David Dorward" <do*****@yahoo.com> wrote in message
news:bu*******************@news.demon.co.uk...
------------------------------------------------------------------------Posted via http://www.forum4designers.com

Forum4designers appear to be passing off Usenet
as their own work. I suggest avoiding them.
This is news://comp.lang.javascript.


Apart from the misrepresentation of the content of the
www.forum4designers.com site as a service that they are providing rather
than admitting that it all originates in Usenet newsgroups,
www.forum4designers.com is also a very bad place to read
comp.lang.javascript as they are re-formatting the content of the
newsgroup posts and loosing all of the indentation in the presented
code.


I wonder if I can guess roughly where they are located ... it appears to
be misuse of resources belonging to others, combined with breach of
copyright law, both local and international.

Partial ostracism is probably the best we can do, unless complaining to
giganews is effective.

By that I mean not answering questions posted via that route, and
pointing out errors in replies but not giving corrected versions.

Breaches of c.l.j agreed etiquette, disregarding Uno Hoo's weirdnesses,
should however be pointed out on a regular basis.

Perhaps there is room in the c.l.j FAQ for a pointer to one or two
suitable news servers / services? Since the FAQ can be found by a naive
Web user Googling for a specific answer, ISTM right to indicate,
directly or indirectly, how the newsgroup should normally be accessed -
both from a real news-server, and from an honest, standards-compliant
Web service.

Stripping indentation is almost completely harmless in javascript,
except where it is intended that it should be read by persons. But in
plain text, which can have tables laid out by indentation, it can easily
corrupt meaning. And News is a plain text medium.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 20 '05 #6
rf

"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:bu*******************@news.demon.co.uk...
"rf" <ma**********@the.time> wrote in message
news:po*****************@news-server.bigpond.net.au...

"David Dorward" <do*****@yahoo.com> wrote in message
news:bu*******************@news.demon.co.uk...
-------------------------------------------------------------------- ----Posted via http://www.forum4designers.com

Forum4designers appear to be passing off Usenet
as their own work. I suggest avoiding them.
This is news://comp.lang.javascript.

See the threads hapenning about this over in alt.html.critique.

<snip>

I like the way that alt.html and alt.html.critique appear to have
decided to react. I wonder how long they will keep it up. :)


Nopefully until they either go away or they openly acknowledge that they are
merely a web base newsreader (*).

(*) Properly constructed web based newsreaders are IMNO a good thing,
google.groups in particular. Not everybody has access to a newsreader
(libraries, internet kiosks etc).

Cheers
Richard.
Jul 20 '05 #7
Richard Cornford hu kiteb:
"rf" <ma**********@the.time> wrote in message
news:po*****************@news-server.bigpond.net.au...

"David Dorward" <do*****@yahoo.com> wrote in message
news:bu*******************@news.demon.co.uk...
------------------------------------------------------------------- - ---- Posted via http://www.forum4designers.com

Forum4designers appear to be passing off Usenet
as their own work. I suggest avoiding them.
This is news://comp.lang.javascript.


Apart from the misrepresentation of the content of the
www.forum4designers.com site as a service that they are providing
rather than admitting that it all originates in Usenet newsgroups,


If everyone put a line in their sigs stating specifically that teh post
a) has nothing to do with that forum site, and b) permission to archive
teh post is specifically denied to that web site, do you think there
might be grounds for a lawsuit is they then persistently ignored the
notice?

At the least, it might make people on the forum notice something is up.

--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #8
"Fabian" <la****@hotmail.com> wrote in message
news:bu************@ID-174912.news.uni-berlin.de...
<snip>
Apart from the misrepresentation of the content of the
www.forum4designers.com site as a service that they are
providing rather than admitting that it all originates
in Usenet newsgroups,
<snip>... b) permission to archive teh post is specifically
denied to that web site, do you think there might be
grounds for a lawsuit is they then persistently
ignored the notice?

<snip>

I am not a lawyer but... well, - but nothing - I don't know. Legal
action costs money and takes time though, so do you have enough of
either going spare in order to find out?

(class action anyone?)

Richard.
Jul 20 '05 #9
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:3S**************@merlyn.demon.co.uk...
<snip>
Perhaps there is room in the c.l.j FAQ for a pointer to one
or two suitable news servers / services? Since the FAQ can be
found by a naive Web user Googling for a specific answer,
ISTM right to indicate, directly or indirectly, how the
newsgroup should normally be accessed - both from a real
news-server, and from an honest, standards-compliant Web
service.
groups.google.com provide facilities for posting to Usenet (at least the
groups they archive) from a web browser. They require you provide them
with a working e-mail address, as they you activate your account by
responding to an e-mail that they send you after your application. I
could mention that possibility at the end on Section 2.11, which is
about the archives at google.groups.com, or in Section 2.3.
Stripping indentation is almost completely harmless in
javascript, except where it is intended that it should
be read by persons.
Yes, the interpreter doesn't care much about whitespace so indentation
does not effect execution (much as it doesn't effect C++ or Java) but
posted code is certainly intended to be understood by humans, and
usually formatted with that in mind.
But in plain text, which can have tables laid out by
indentation, it can easily corrupt meaning. And News
is a plain text medium.


We see more code than tables but they will be subject to the same
problem. Along with asci art diagrams and the like.

Richard.
Jul 20 '05 #10
JRS: In article <bu*******************@news.demon.co.uk>, seen in
news:comp.lang.javascript, Richard Cornford
<Ri*****@litotes.demon.co.uk> posted at Sun, 18 Jan 2004 07:06:17 :-
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:3S**************@merlyn.demon.co.uk...
<snip>
Perhaps there is room in the c.l.j FAQ for a pointer to one
or two suitable news servers / services? Since the FAQ can be
found by a naive Web user Googling for a specific answer,
ISTM right to indicate, directly or indirectly, how the
newsgroup should normally be accessed - both from a real
news-server, and from an honest, standards-compliant Web
service.


groups.google.com provide facilities for posting to Usenet (at least the
groups they archive) from a web browser. They require you provide them
with a working e-mail address, as they you activate your account by
responding to an e-mail that they send you after your application. I
could mention that possibility at the end on Section 2.11, which is
about the archives at google.groups.com, or in Section 2.3.


I think so, if we are satisfied that Google-news is decently standards-
compliant.

If one needs to use Web for news, at least one should use a properly-
operating system.
Stripping indentation is almost completely harmless in
javascript, except where it is intended that it should
be read by persons.


Yes, the interpreter doesn't care much about whitespace so indentation
does not effect execution (much as it doesn't effect C++ or Java) but
posted code is certainly intended to be understood by humans, and
usually formatted with that in mind.
But in plain text, which can have tables laid out by
indentation, it can easily corrupt meaning. And News
is a plain text medium.


We see more code than tables but they will be subject to the same
problem. Along with asci art diagrams and the like.


Yes. My point was that, while space-stripping is annoying in javascript
and, say, Pascal/Delphi/C etc., it is destructive in such as FORTRAN and
that language which uses indentation instead of {...} / BEGIN...END; and
it can be destructive in plain text, which is the chief News language.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3 Turnpike 4 ©
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
Jul 20 '05 #11
JRS: In article <iG******************@news-server.bigpond.net.au>, seen
in news:comp.lang.javascript, rf <ma**********@the.time> posted at Sun,
18 Jan 2004 03:01:34 :-

"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:bu*******************@news.demon.co.uk...
"rf" <ma**********@the.time> wrote in message
news:po*****************@news-server.bigpond.net.au...
>
>"David Dorward" <do*****@yahoo.com> wrote in message
>news:bu*******************@news.demon.co.uk...
>>> --------------------------------------------------------------------

----
>>>Posted via http://www.forum4designers.com
>>
>>Forum4designers appear to be passing off Usenet
>>as their own work. I suggest avoiding them.
>>This is news://comp.lang.javascript.

>See the threads hapenning about this over in alt.html.critique.

<snip>

I like the way that alt.html and alt.html.critique appear to have
decided to react. I wonder how long they will keep it up. :)


Nopefully until they either go away or they openly acknowledge that they are
merely a web base newsreader (*).

(*) Properly constructed web based newsreaders are IMNO a good thing,
google.groups in particular. Not everybody has access to a newsreader
(libraries, internet kiosks etc).


Agreed; they have their place.

But, for those who can use a newsreader, we should make it reasonably
clear that the best experience is obtained with properly-designed well-
written standards-compliant news software that has local storage; or,
failing that, OE.

--
© John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.

In MS OE, choose Tools, Options, Send; select Plain Text for News and E-mail.
Jul 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Web Master | last post: by
2 posts views Thread by Freeserve | last post: by
11 posts views Thread by Wentink | last post: by
8 posts views Thread by Sergei | last post: by
3 posts views Thread by Bob | last post: by
reply views Thread by khu84 | last post: by
12 posts views Thread by puzzlecracker | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.