473,395 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1409
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Web Master | last post by:
Hi, I am having a little issue with Jacks Form mail php script. I have installed it and configured the form to get it to work, but for some bizarre reason I have 2 issues I can't seem to debug....
2
by: Freeserve | last post by:
I am trying to write to a file using: <% Sub OpenTextFileTest Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, f
11
by: Wentink | last post by:
Does anybody have a simple script that let's me popup a picture from a thumbnail? The ones i found are all very very complicated and messy in the source... Thanks, Tintin
8
by: Sergei | last post by:
Hi, I am displaying modal dialog and passing values from the main form to the modal dialog and back. It works fine but if I used the following syntax on Page_Load(just for testing) in VB to...
3
by: Bob | last post by:
Hi, I have an app that has a 3rd party phone answering control (4 of ) (interfacing with dialogic 4 line card) attached to the main form. each control raises an event when its Dialogic line...
0
by: khu84 | last post by:
Here is client server very simple code, seems to work with telnet but with with web client code gives blank output. Following is the server code:- <?php function...
4
cassbiz
by: cassbiz | last post by:
Could use some help here. This script is carrying over an image just fine but the text isn't coming over. can you see why it is not working???? from the form I want to carry over two lines of...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.