SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: "No Peeking" into my directories

  1. #1
    SitePoint Addict operator's Avatar
    Join Date
    Aug 2004
    Location
    Bangkok
    Posts
    388
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "No Peeking" into my directories

    Hi,
    I have seen "No Peeking" pages on some websites when I try to look into a directory (for example a directory of images). Rather than get a list of files that exist in the directory, a page is displayed with a message such as "No Peeking". Is this done with mod_rewrite?

    I would like to implement this into a site of mind that has an extensive photo gallery system. However, I want to receive traffic from Google Image Searches, so would like to know if this would affect the Google traffic.

    Thanks for any response/help.

  2. #2
    SitePoint Addict
    Join Date
    Oct 2005
    Location
    Michigan, USA
    Posts
    337
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Just put an index page in the folder. Don't need rewrite for it.
    - Robert

  3. #3
    SitePoint Addict operator's Avatar
    Join Date
    Aug 2004
    Location
    Bangkok
    Posts
    388
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah yes, of course! Thanks!

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,343
    Mentioned
    15 Post(s)
    Tagged
    2 Thread(s)
    op,

    Use Apache's DirectoryIndex to set the default page for a directory and/or Options -Indexes to forbid a directory listing.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    Updated mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  5. #5
    SitePoint Addict operator's Avatar
    Join Date
    Aug 2004
    Location
    Bangkok
    Posts
    388
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm... thanks to you both for the info.

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
  •