Script Required: Blocking Back Doors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anonymous

    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

  • David Dorward

    #2
    Re: Script Required: Blocking Back Doors

    > I dont know how to program Javascript, but I am a web designer. I am[color=blue]
    > 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".[/color]

    Not possible. As JavaScript runs client side, any such attempt is easily
    bypassable.
    [color=blue]
    > 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.[/color]

    Put the password protection on all the pages, and make it real password
    protection.


    [color=blue]
    > 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.[/color]

    Javascript is not used for any real security.
    [color=blue]
    > ------------------------------------------------------------------------
    > Posted via http://www.forum4designers.com[/color]

    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/>

    Comment

    • kaeli

      #3
      Re: Script Required: Blocking Back Doors

      In article <Guest.101jcm@m ail.forum4desig ners.com>,
      Guest.101jcm@ma il.forum4design ers.com enlightened us with...[color=blue]
      >
      > 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".[/color]

      Can't be done with client-side script.
      [color=blue]
      >
      > e.g. my website is www.johnsmith.com[/color]

      Your images are broken.
      [color=blue]
      > and it has password protection
      > on the index.html file,[/color]

      I had no problems in any browser. Nothing asked for a password. A bunch
      of links are broken though.
      [color=blue]
      > to get to the homepage (home.html),[/color]


      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
      [color=blue]
      > 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?
      >[/color]

      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!



      Comment

      • rf

        #4
        Re: Script Required: Blocking Back Doors


        "David Dorward" <dorward@yahoo. com> wrote in message
        news:bu4ai4$mcm $1$8302bc10@new s.demon.co.uk.. .[color=blue][color=green]
        > > ------------------------------------------------------------------------
        > > Posted via http://www.forum4designers.com[/color]
        >
        > Forum4designers appear to be passing off Usenet as their own work. I[/color]
        suggest[color=blue]
        > avoiding them. This is news://comp.lang.javascript.[/color]

        See the threads hapenning about this over in alt.html.critiq ue.

        They are even stealing stuff from the microsoft heirarchy.

        Cheers
        Richard.


        Comment

        • Richard Cornford

          #5
          Re: Script Required: Blocking Back Doors

          "rf" <making.it.up@t he.time> wrote in message
          news:pomNb.1274 7$Wa.3654@news-server.bigpond. net.au...[color=blue]
          >
          >"David Dorward" <dorward@yahoo. com> wrote in message
          >news:bu4ai4$mc m$1$8302bc10@ne ws.demon.co.uk. ..[color=green][color=darkred]
          >>> --------------------------------------------------------------------[/color][/color][/color]
          ----[color=blue][color=green][color=darkred]
          >>>Posted via http://www.forum4designers.com[/color]
          >>
          >>Forum4designe rs appear to be passing off Usenet
          >>as their own work. I suggest avoiding them.
          >>This is news://comp.lang.javascript.[/color][/color]

          Apart from the misrepresentati on 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.javas cript 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.javas cript 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.forum4desig ners.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.
          [color=blue]
          >See the threads hapenning about this over in alt.html.critiq ue.[/color]
          <snip>

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

          Richard.


          Comment

          • Dr John Stockton

            #6
            Re: Script Required: Blocking Back Doors

            JRS: In article <bub7ms$612$1$8 302bc10@news.de mon.co.uk>, seen in
            news:comp.lang. javascript, Richard Cornford
            <Richard@litote s.demon.co.uk> posted at Sat, 17 Jan 2004 11:52:58 :-[color=blue]
            >"rf" <making.it.up@t he.time> wrote in message
            >news:pomNb.127 47$Wa.3654@news-server.bigpond. net.au...[color=green]
            >>
            >>"David Dorward" <dorward@yahoo. com> wrote in message
            >>news:bu4ai4$m cm$1$8302bc10@n ews.demon.co.uk ...[color=darkred]
            >>>> --------------------------------------------------------------------[/color][/color]
            >----[color=green][color=darkred]
            >>>>Posted via http://www.forum4designers.com
            >>>
            >>>Forum4design ers appear to be passing off Usenet
            >>>as their own work. I suggest avoiding them.
            >>>This is news://comp.lang.javascript.[/color][/color]
            >
            >Apart from the misrepresentati on 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.java script as they are re-formatting the content of the
            >newsgroup posts and loosing all of the indentation in the presented
            >code.[/color]

            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.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
            <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

            Comment

            • rf

              #7
              Re: Script Required: Blocking Back Doors


              "Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message
              news:bub7ms$612 $1$8302bc10@new s.demon.co.uk.. .[color=blue]
              > "rf" <making.it.up@t he.time> wrote in message
              > news:pomNb.1274 7$Wa.3654@news-server.bigpond. net.au...[color=green]
              > >
              > >"David Dorward" <dorward@yahoo. com> wrote in message
              > >news:bu4ai4$mc m$1$8302bc10@ne ws.demon.co.uk. ..[color=darkred]
              > >>> --------------------------------------------------------------------[/color][/color]
              > ----[color=green][color=darkred]
              > >>>Posted via http://www.forum4designers.com
              > >>
              > >>Forum4designe rs appear to be passing off Usenet
              > >>as their own work. I suggest avoiding them.
              > >>This is news://comp.lang.javascript.[/color][/color]
              >[color=green]
              > >See the threads hapenning about this over in alt.html.critiq ue.[/color]
              > <snip>
              >
              > I like the way that alt.html and alt.html.critiq ue appear to have
              > decided to react. I wonder how long they will keep it up. :)[/color]

              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.


              Comment

              • Fabian

                #8
                Re: Script Required: Blocking Back Doors

                Richard Cornford hu kiteb:
                [color=blue]
                > "rf" <making.it.up@t he.time> wrote in message
                > news:pomNb.1274 7$Wa.3654@news-server.bigpond. net.au...[color=green]
                >>
                >> "David Dorward" <dorward@yahoo. com> wrote in message
                >> news:bu4ai4$mcm $1$8302bc10@new s.demon.co.uk.. .[color=darkred]
                >>>> -------------------------------------------------------------------[/color][/color][/color]
                -[color=blue][color=green][color=darkred]
                >>>> ---- 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.[/color][/color]
                >
                > Apart from the misrepresentati on 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,[/color]

                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!


                Comment

                • Richard Cornford

                  #9
                  Re: Script Required: Blocking Back Doors

                  "Fabian" <lajzar@hotmail .com> wrote in message
                  news:bud12i$fuq jv$1@ID-174912.news.uni-berlin.de...
                  <snip>[color=blue][color=green]
                  >>Apart from the misrepresentati on 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,[/color][/color]
                  <snip>[color=blue]
                  >... 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?[/color]
                  <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.


                  Comment

                  • Richard Cornford

                    #10
                    Re: Script Required: Blocking Back Doors

                    "Dr John Stockton" <spam@merlyn.de mon.co.uk> wrote in message
                    news:3S3RozH$7a CAFwsW@merlyn.d emon.co.uk...
                    <snip>[color=blue]
                    >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.[/color]

                    groups.google.c om 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.c om, or in Section 2.3.
                    [color=blue]
                    >Stripping indentation is almost completely harmless in
                    >javascript, except where it is intended that it should
                    >be read by persons.[/color]

                    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.
                    [color=blue]
                    >But in plain text, which can have tables laid out by
                    >indentation, it can easily corrupt meaning. And News
                    >is a plain text medium.[/color]

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

                    Richard.


                    Comment

                    • Dr John Stockton

                      #11
                      Re: Script Required: Blocking Back Doors

                      JRS: In article <budb9a$9u3$1$8 302bc10@news.de mon.co.uk>, seen in
                      news:comp.lang. javascript, Richard Cornford
                      <Richard@litote s.demon.co.uk> posted at Sun, 18 Jan 2004 07:06:17 :-[color=blue]
                      >"Dr John Stockton" <spam@merlyn.de mon.co.uk> wrote in message
                      >news:3S3RozH$7 aCAFwsW@merlyn. demon.co.uk...
                      ><snip>[color=green]
                      >>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.[/color]
                      >
                      >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.c om, or in Section 2.3.[/color]

                      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.
                      [color=blue][color=green]
                      >>Stripping indentation is almost completely harmless in
                      >>javascript, except where it is intended that it should
                      >>be read by persons.[/color]
                      >
                      >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.
                      >[color=green]
                      >>But in plain text, which can have tables laid out by
                      >>indentation , it can easily corrupt meaning. And News
                      >>is a plain text medium.[/color]
                      >
                      >We see more code than tables but they will be subject to the same
                      >problem. Along with asci art diagrams and the like.[/color]

                      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.demo n.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
                      <URL:http://www.bancoems.co m/CompLangPascalD elphiMisc-MiniFAQ.htm> clpdmFAQ;
                      <URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines

                      Comment

                      • Dr John Stockton

                        #12
                        Re: Script Required: Blocking Back Doors

                        JRS: In article <iGmOb.16800$Wa .12410@news-server.bigpond. net.au>, seen
                        in news:comp.lang. javascript, rf <making.it.up@t he.time> posted at Sun,
                        18 Jan 2004 03:01:34 :-[color=blue]
                        >
                        >"Richard Cornford" <Richard@litote s.demon.co.uk> wrote in message
                        >news:bub7ms$61 2$1$8302bc10@ne ws.demon.co.uk. ..[color=green]
                        >> "rf" <making.it.up@t he.time> wrote in message
                        >> news:pomNb.1274 7$Wa.3654@news-server.bigpond. net.au...[color=darkred]
                        >> >
                        >> >"David Dorward" <dorward@yahoo. com> wrote in message
                        >> >news:bu4ai4$mc m$1$8302bc10@ne ws.demon.co.uk. ..
                        >> >>> --------------------------------------------------------------------[/color]
                        >> ----[color=darkred]
                        >> >>>Posted via http://www.forum4designers.com
                        >> >>
                        >> >>Forum4designe rs appear to be passing off Usenet
                        >> >>as their own work. I suggest avoiding them.
                        >> >>This is news://comp.lang.javascript.[/color]
                        >>[color=darkred]
                        >> >See the threads hapenning about this over in alt.html.critiq ue.[/color]
                        >> <snip>
                        >>
                        >> I like the way that alt.html and alt.html.critiq ue appear to have
                        >> decided to react. I wonder how long they will keep it up. :)[/color]
                        >
                        >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.group s in particular. Not everybody has access to a newsreader
                        >(libraries, internet kiosks etc).[/color]

                        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.demo n.co.uk Turnpike v4.00 MIME. ©
                        Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.

                        In MS OE, choose Tools, Options, Send; select Plain Text for News and E-mail.

                        Comment

                        Working...