how to make a .htaccess

Discussion in 'HTML & Website Design' started by Breaker61, Dec 9, 2008.

  1. #1
    i need to make a .htaccess file so say a folder called news cannot been seen or dl by anyone but used by google and the script.

    also all files in that folder are .txt files

    and how to stop anyone dl the whole site.

    thank you
     
    Breaker61, Dec 9, 2008 IP
  2. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can just create .htaccess in the folder 'news' and add this line in it:

    deny from all
    Code (markup):
    Nobody will have access to it from the outside, but your script will work. Unfortunately, google will not be able to crawl those txt files, but if you use them on your site, it will crawl them there.
     
    dejangex, Dec 9, 2008 IP
  3. JstWc9

    JstWc9 Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Hello Breaker61,

    The following .htaccess Tutorial will help you set up
    security settings properly, for your website -

    http://www.freewebmasterhelp.com/tutorials/htaccess/

    Sincerely,

    *JstWc9~
    :cool:
     
    JstWc9, Dec 9, 2008 IP
  4. Breaker61

    Breaker61 Guest

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    many thanks for your replys but as i said i am very new to this and got lost on that.

    Thank you
     
    Breaker61, Dec 10, 2008 IP
  5. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Just do what I said on the 2nd post, and your news folder will not be accessible from the web, but your scripts will work.

    PM me if you need more help.
     
    dejangex, Dec 10, 2008 IP