SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: .htaccess help!

  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    United Kingdom
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess help!

    Recently I've been looking up .htaccess to protect my content which is in folders on my host.

    I followed a tutorial online that showed me how to deny all IP address apart from my own. This caused a big problem. It worked - but images then would not work on my website and people could not link my button etc.

    This also happens to me when I password protect my directories via cPanel. Is there an easy way of doing this?

    I basically want all my folders forbidden to everyone apart from me, yet the images or whatever content is in the folder still shows on the webpage.

    Thanks very much for your help!

  2. #2
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,054
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    The best way to protect your content is to put your copyright information at the bottom of your page. People who aren't honest will steal it anyway, but those who are will respect that.

    Aside from that, you can do js no-right click scripts and try a multitude of other tricks. People who are dedicated to stealing content probably know how most of them work and will steal your copy anyway. People who are honest will just get ticked off because your site will not function properly in their browser.

    There is no sure-fire way to protect content on the Internet. If there was, everyone would be using it.
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  3. #3
    SitePoint Evangelist ldivinag's Avatar
    Join Date
    Jan 2005
    Location
    N37 33* W122 3*
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    leo d.

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2003
    Location
    world wide
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need Options -Indexes
    you can add it in a .htaccess file.


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
  •