SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Developing on a webhost and only providing myself the access to the site?

    Is it possible to develope a site on... say a Media Temple (GS) Grid Service plan and only allow the developer or designer to view the site (Username and Password) and not allow any search engine to index those pages under development. After finishing the design and development and once everything is good to go, then allow public access to the site being developed.
    Is this possible?

    Thank you

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ya just need basic authorization. Set a username and password that you and your client know.

    http://www.colostate.edu/~ric/htpass.html

    http://www.htaccesstools.com/htaccess-authentication/

    Search engines won't be able to access the site because they don't have the username and password. When you're finished, delete the .htaccess/.htpasswd files and it becomes public.

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    Ya just need basic authorization. Set a username and password that you and your client know.

    http://www.colostate.edu/~ric/htpass.html

    http://www.htaccesstools.com/htaccess-authentication/

    Search engines won't be able to access the site because they don't have the username and password. When you're finished, delete the .htaccess/.htpasswd files and it becomes public.
    Gonna be purchasing the grid service tomorrow, i'll try the tutorials you've given the links to...looks a little difficult to grasp though..

    thanks alot Dan

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    1) Run htaccess generator, upload .htaccess file
    2) Run htpasswd generator, upload .htpasswd file
    3) Website is now password protected

    This should take you about 30 seconds, it's just a copy and paste

  5. #5
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I use (mt)mediaTemple as my host provider (grid service), if you want to edit the htaccess file (or apply password protected folders) you have a couple of options...

    From the control panel you can go to the file manager > domains > (your domain here) > html > .htaccess (and then edit the file directly in the textbox).
    or...
    Open your FTP editor, go to the base directory and upload a custom .htaccess file, and this will overwrite the default empty file giving the effect you want.
    or...
    Click Password protected folders and select the folder you want to protect from the control panel (you will need to add a "web group" first)!

  6. #6
    SitePoint Wizard SiberForum's Avatar
    Join Date
    Dec 2007
    Posts
    1,197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also you can simple disallow that through robots.txt file

  7. #7
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    SiberForum, wrong, that would not use usernames and passwords (as the OP wanted) and it would only stop search engines which comply with the robots specification. In fact it would be pretty ineffective overall as it would allow more than the designer to visit the website (again what the OP asked for).

  8. #8
    Non-Member
    Join Date
    Nov 2009
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I deem small custom made script will be able to do this job for you

  9. #9
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    1) Run htaccess generator, upload .htaccess file
    2) Run htpasswd generator, upload .htpasswd file
    3) Website is now password protected

    This should take you about 30 seconds, it's just a copy and paste

    Hi Dan..finally got myself the media temple account..this is what i tried..

    All the website files are in the html folder..
    So i created a new fullpath.php and inserted this php code in it.

    PHP Code:
    <?php
    echo dirname(__FILE__);
    ?>
    Then i accessed the url: http://www.example.com/fullpath.php

    It displayed a path, i copied that path and pasted it into the field requesting the path on this page. I clicked on generate htaccess file and it generated some text for me to paste in the htaccess file in the html (root) folder. I pasted it.

    Then i went to this page to generate a password.

    I keyed in the username and the password and hit, create htpasswd file, it created a textarea for me to copy some code to be inserted into the .htpasswd file in the html directory.

    I pasted the code..

    Now when i access the url www.example.com it asks for a username and a password..when i key it in..it asks again..key in..and again and again..it asks for a username and password..am i doing something wrong?

    This is the error:
    This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

    Are there any file permissions i need to change..the html folder is set to 750..

    Thanks you
    Merry Christmas

  10. #10
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Maybe you could that path and the contents of those files with us.

  11. #11
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the contents of the .htaccess file in the root folder called html:

    AuthType Basic
    AuthName "My Protected Area"
    AuthUserFile /path/to/.htpasswd
    Require valid-user

    This is the contents of the .htpasswd file that is also in the root folder called html:

    webfreak05:$apr1$Gr9Pz...$mS0wUmYdqGtn3zh0XCRem.

    Other files in the html folder is the index.html file the default images folder that media temple gives you (for the regular under construction pages).

    Thanks Dan

  12. #12
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a screenshot of the folder structure

    http://twitpic.com/uc4jl

  13. #13
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Does it actually say "/path/to/.htpasswd" or did you write that for this post?

  14. #14
    SitePoint Enthusiast
    Join Date
    Nov 2009
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    Does it actually say "/path/to/.htpasswd" or did you write that for this post?
    I wrote it for this post..

    Is it safe for me to put the whole path here..I'm new to this sorry Dan..


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
  •