We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Password protect areas of website

tincat
tincat Posts: 935 Forumite
Hi all,

I'm creating a website as a present to a friend, where it will have photos and stories relevant to her / friends / family etc. It will be completely uncommercial, and only a few people will have access.

I'd like to know a few things if anyone can help with one or both of them:

1) How do I password protect a whole folder within the site structure (i.e. my friend enters a username and password, and then can see any of the pages which are in that folder, but no ordinary person who stumbles on the site will see them)

1a) If someone was given an exact URL to a page in the protected area (or it was in their favourites) they would still need a password to log in.

2) Make sure that the pages and photos aren't indexed by spiders. Google came up with robots.txt, but I'm just unsure whether I need to be running mysql or php on my computer to use it.

I'm using dreamweaver cs3 to set up the site, and no server technology. It will just for now be html and css.

Thanks

Comments

  • S0litaire
    S0litaire Posts: 3,535
    Part of the Furniture 1,000 Posts Combo Breaker
    Forumite
    edited 9 March 2010 at 7:04PM
    "robots.txt" is just a text file. All bots should read this file and only look where you let them.
    http://en.wikipedia.org/wiki/Robots_exclusion_standard

    As for password protection, it depends on your web hosting,
    Who is hosting your website?

    *note*
    there was a rouge MSN bot that went around ignoring the TXT file, but not sure if Microsoft still use it (it was a few months ago)
    Laters

    Sol

    "Have you found the secrets of the universe? Asked Zebade "I'm sure I left them here somewhere"
  • bobbych_2
    bobbych_2 Posts: 54 Forumite
    depending on who your webhost is, you will be using a control panel such as cpanel etc

    in there, you should have an option to password a directory on ther server
  • Owain_Moneysaver
    Owain_Moneysaver Posts: 11,393
    Part of the Furniture 10,000 Posts Name Dropper
    Forumite
    If you are using an Apache server (and your server provider lets you) you can use .htaccess to provide password privs on subdirectories. Search engines won't have the password so unless something goes seriously wrong it should be secure.
    http://en.wikipedia.org/wiki/Htaccess
    A kind word lasts a minute, a skelped erse is sair for a day.
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.4K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.1K Travel & Transport
  • 1.6M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.