Jump to content


VlexoFree Notice

Interviews will be open every Friday starting at 12am PDT and lasting for 24 hours.

- - - - -

.htaccess


  • Please log in to reply
2 replies to this topic

#1 Sharad D

Sharad D

    Advanced Member

  • VlexoFree Support
  • 1,349 posts
  • LocationBengaluru, India

Posted 11 December 2010 - 06:09 PM

I've seen most people leaving their content open. They set all images in images/ directory and forget to add index page to hide the content!

To hide the content if index page is missing, Add the following in .htaccess file preferably in public_html directory as it applies to child directories as well
Options -Indexes

To override above in child directory, Add in child directory
Options +Indexes

You get 403 error if someone tries to access it. Once you place index page, that page will be displayed properly.

With great power comes great responsibility

Please do not PM me for support. Instead, post in the appropriate forum and help will be provided accordingly.
Helpful links: Terms of Service | Privacy Policy | Wiki - Tutorials & Description | VlexoFree Support


Ad Bot


      #2 Kiro R

      Kiro R

        Advanced Member

      • VlexoFree Support
      • 426 posts

      Posted 11 December 2010 - 08:37 PM

      Nice tutorial ^^;
      htaccess is good for denying access to anything in the folder as well, and only allowing the website to include it from other parts. ^^;
      Yours Sincerely,

      Kiro R.
      VlexoFree Support Team


      Please do not PM me for support. Instead, post in the appropriate forum and help will be provided accordingly.
      Helpful links: Terms of Service | Privacy Policy | Wiki - Tutorials & Description | VlexoFree Support |


      #3 cinderellaman

      cinderellaman

        Member

      • Pre-Members
      • 11 posts

      Posted 09 March 2011 - 10:15 AM

      Thanks for the coll tips. Will apply it in case it happens to my site.




      1 user(s) are reading this topic

      0 members, 1 guests, 0 anonymous users