Back Home

Open Designs

Community. Driven.

  1.  
    if i make a directory only readable to the Owner or User/group does that mean that its contents won't be indexed by search bots.I dont want a robots.txt file bc i dont want anyone reading that file and looking in it. i only want its contents accessible by a php script (which i believe would act as owner)
    •  
      CommentAuthorSean
    • CommentTimeJun 25th 2008 edited by Sean on the 25th June 2008 at 18:27:16 EDT
     
    do you have an index file in the folder/directory you don't want spidered by search engines?

    If so, add the following meta content tag to the top of your index file just below your title tag:

    < meta name="robots" content="noindex, nofollow, noarchive" />

    Of course remove the space befor the word meta.
  2.  
    i dont have an index file its only txt files used as dbs
    •  
      CommentAuthorSean
    • CommentTimeJun 25th 2008
     
    You could also block that directory with .htaccess I believe if you don't have an index file in it... however, why not add one to it? Your script can call the text file in it directly, and the index file with the above meta information will block spiders....
  3.  
    ohhhh! i see what your saying. i didnt understand before.... the index just to block the list of content
    •  
      CommentAuthorSean
    • CommentTimeJun 25th 2008
     
    Yep :)

    Sorry I wasn't more clear about it.
  4.  
    thanks!
    • CommentAuthorfernbap
    • CommentTimeJun 26th 2008
     
    improving on the index file idea, you can make it redirect to any other page that you want to be as the entry page of your website
    •  
      CommentAuthorSean
    • CommentTimeJun 26th 2008
     
    Posted By: fernbapimproving on the index file idea, you can make it redirect to any other page that you want to be as the entry page of your website

    Another good idea. Of course this can be achieved using a .htaccess file.