Close

Results 1 to 17 of 17
  1. #1
    DF VIP Member Q-Ball's Avatar
    Join Date
    Mar 2005
    Location
    In a House
    Posts
    1,576
    Thanks
    56
    Thanked:        2
    Karma Level
    342

    Default Password protecting areas of a site

    Hi guys,

    i have created a personal website using frontpage (nothing fancy) and have also created a family tree which i have added to that site. I would like my site to be seen by everyone, however i want to limit access to the family tree to everybody who has the password. Is there an easy way to do this?

    Thanks
    Q
    If I'm not back in five minutes... wait longer!

  2. #2
    DF VIP Member big man's Avatar
    Join Date
    Jul 2002
    Location
    The big smoke
    Posts
    2,824
    Thanks
    8
    Thanked:        0
    Karma Level
    445

    Default Re: Password protecting areas of a site

    you might be able to do this using an htaccess file if you have a linux host (i think, i don't know much about linux)

    other than that you'll have to use a scripting language and a database.

    if you're hosting the site on a windows server i'll be able to help you out if you want
    I am a loud man with a very large hat. This means I am in charge

    Never argue with an idiot. They will bring you down to their level, then beat you with experience.

  3. #3
    DF VIP Member Q-Ball's Avatar
    Join Date
    Mar 2005
    Location
    In a House
    Posts
    1,576
    Thanks
    56
    Thanked:        2
    Karma Level
    342

    Default Re: Password protecting areas of a site

    how do i check what type of sever im running it on? someone else set up the account for me, and all i have is the ftp logon details.

    and how do i use htaacess? i googled it and have created a access and password file, but not sure where to put them?
    Last edited by Q-Ball; 5th January 2006 at 12:54 AM.
    If I'm not back in five minutes... wait longer!

  4. #4
    DF VIP Member big man's Avatar
    Join Date
    Jul 2002
    Location
    The big smoke
    Posts
    2,824
    Thanks
    8
    Thanked:        0
    Karma Level
    445

    Default Re: Password protecting areas of a site

    easiest way to find out what what type of server is to ask whoever set it up

    as for the htaccess file, google will be able to help you more than i can as i've never used one
    I am a loud man with a very large hat. This means I am in charge

    Never argue with an idiot. They will bring you down to their level, then beat you with experience.

  5. #5
    Argyll's Apprentice TwoPlAnKs's Avatar
    Join Date
    May 2003
    Location
    Aberdeenshire
    Posts
    5,191
    Thanks
    0
    Thanked:        0
    Karma Level
    620

    Default Re: Password protecting areas of a site

    get a 404 error from the server and it might tell you on that page, totally botched way of finding out but also the easiest. .htaccess is for apache, not linux. it could be running windows and apache and .htaccess will work

    whatever you use, dont use a javascript password checker thing. these store the password in the webpage and anybody could read it.

  6. #6
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Password protecting areas of a site

    To detect the server type, run the "SYST" command in the FTP login - here is an example from my login on 2 servers:

    Code:
    220 xxxxxx FTP server ready.
    user xxxxx
    331 Password required for xxxxxxx.
    pass xxxxxxxxx
    230 User xxxxxx logged in.
    syst
    215 UNIX Type: L8 Version: SUNOS
    Code:
    220 ProFTPD 1.2.9 Server (UUNET DialSpace FTP Server) [xxxxxxxxxxxxx]
    user xxxxxxxxx
    331 Password required for xxxxxxxx.
    pass xxxxxxxxx
    230 User xxxxxxxxx logged in.
    syst
    215 UNIX Type: L8
    (personal details hidden for obvious reasons! )

  7. #7
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Password protecting areas of a site

    The above is on telnet (using port 21) by the way:

    Code:
    telnet ftp.myserver.com 21

  8. #8
    DF VIP Member big man's Avatar
    Join Date
    Jul 2002
    Location
    The big smoke
    Posts
    2,824
    Thanks
    8
    Thanked:        0
    Karma Level
    445

    Default Re: Password protecting areas of a site

    Quote Originally Posted by TwoPlAnKs
    it could be running windows and apache and .htaccess will work
    yeah - i was assuming most people run apache on a linux box. i always equate php - linux
    I am a loud man with a very large hat. This means I am in charge

    Never argue with an idiot. They will bring you down to their level, then beat you with experience.

  9. #9
    DF VIP Member Q-Ball's Avatar
    Join Date
    Mar 2005
    Location
    In a House
    Posts
    1,576
    Thanks
    56
    Thanked:        2
    Karma Level
    342

    Default Re: Password protecting areas of a site

    thanks for that - i have done as you have suggested and the response is

    "215 UNIX Type: L8"
    If I'm not back in five minutes... wait longer!

  10. #10
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Password protecting areas of a site

    Hi,
    Although the response can be fixed, it is very likely that it is in fact a unix server, and therefore very likely that it is running apache.

  11. #11
    DF VIP Member big man's Avatar
    Join Date
    Jul 2002
    Location
    The big smoke
    Posts
    2,824
    Thanks
    8
    Thanked:        0
    Karma Level
    445

    Default Re: Password protecting areas of a site

    Quote Originally Posted by Q-Ball
    thanks for that - i have done as you have suggested and the response is
    "215 UNIX Type: L8"
    right - in that case i'm afraid i'm going to be of no use mate
    I am a loud man with a very large hat. This means I am in charge

    Never argue with an idiot. They will bring you down to their level, then beat you with experience.

  12. #12
    DF VIP Member shadowdancer's Avatar
    Join Date
    May 2002
    Location
    Inverness
    Posts
    1,536
    Thanks
    0
    Thanked:        0
    Karma Level
    395

    Default Re: Password protecting areas of a site

    if its apache and you are allowed to use htaccess to override some things then this url may help

    http://www.javascriptkit.com/howto/htaccess3.shtml

    or more on google
    http://www.google.co.uk/search?q=hta...ord+protection

  13. #13
    DF VIP Member Q-Ball's Avatar
    Join Date
    Mar 2005
    Location
    In a House
    Posts
    1,576
    Thanks
    56
    Thanked:        2
    Karma Level
    342

    Default Re: Password protecting areas of a site

    ok, i think im just stupid. i have tried htaccess a few times now, and i can't get it to work. i have followed the instructions above with no luck.

    Put the access file in the directory i want to protect. (mytree - name of directory)
    put the password in a secure folder (/private)
    put in the full path where the password is stored into the access file (/private/.htapasswd)
    go to my website and click on a link to the mytree folder - and its goes straight to it.

    any ideas?

    also, how do i log onto the site using telnet? i do telnet mysite 21 username password but it doesnt work, it says

    220-Matrix FTP server ready.
    220-This is a private system - No anonymous login
    220 Please note: files for your website must be stored under the htdocs director
    If I'm not back in five minutes... wait longer!

  14. #14
    DF VIP Member /dev/null's Avatar
    Join Date
    Feb 2004
    Location
    Behind You
    Posts
    2,952
    Thanks
    0
    Thanked:        0
    Karma Level
    451

    Default Re: Password protecting areas of a site

    Hi, log in using just
    Code:
    telnet mysite 21
    Then when prompted, type in:
    Code:
    USER yourUserName
    and then
    Code:
    PASS yourPassword

  15. #15
    DF VIP Member Q-Ball's Avatar
    Join Date
    Mar 2005
    Location
    In a House
    Posts
    1,576
    Thanks
    56
    Thanked:        2
    Karma Level
    342

    Default Re: Password protecting areas of a site

    thanks for that, but it doesnt prompt me for a login. i type "telnet ftp.xxx.co.uk 21" and get the message above. The only commands it accepts from there are chmod and idle.

    if i do not type ftp.xxx and use xxx.co.uk, i do not get anything back aftetr i press enter.

    I am using ms-dos on xp to kick off telnet
    If I'm not back in five minutes... wait longer!

  16. #16
    DF VIP Member tam9's Avatar
    Join Date
    Apr 2002
    Location
    The city of R
    Posts
    3,855
    Thanks
    2
    Thanked:        1
    Karma Level
    637

    Default Re: Password protecting areas of a site

    It is unix/linux unless the server response has been changed. Very robust and 99.9% running apache. To make a .htaccess file all you have to do is follow this ( http://www.javascriptkit.com/howto/htaccess3.shtml ) and you should be up and running.

    If it then doesn't work I will write a small and very concise way of doing it the way you like.

    Tam

  17. #17
    DF VIP Member partyman's Avatar
    Join Date
    Jul 2001
    Location
    Saarf Larndarn
    Posts
    1,398
    Thanks
    0
    Thanked:        0
    Karma Level
    437

    Default Re: Password protecting areas of a site

    Q-Ball do you have cpanel with your host? If so there's a "Password Protect Directories" function in there which would be a much easier way.

Similar Threads

  1. xbox site
    By Mark_1983 in forum Site Critique
    Replies: 17
    Last Post: 27th September 2002, 12:34 AM
  2. web site review
    By 0blue2 in forum Site Critique
    Replies: 7
    Last Post: 26th September 2002, 08:26 AM
  3. Satdudez site
    By Sarah Brooke in forum Digital Satellite TV
    Replies: 33
    Last Post: 21st September 2002, 02:26 AM
  4. coders lunch box - web site dev
    By wadgey in forum Forum Bug & Error Reports
    Replies: 1
    Last Post: 30th August 2002, 05:10 AM
  5. Xbox hard disk password revealer
    By rab2 in forum Microsoft Consoles
    Replies: 1
    Last Post: 28th August 2002, 12:47 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •