Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

Directory Protector

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

Directory Protector - CodeCanyon Item for Sale


Ad: Bluehost hosting

Created By A Web Developer For Web Developer’s

Free updates & Lifetime support included!

Version 1.2 Released!


Directory Protector allows you to protect directories that you specify by creating an index file in the chosen directories. I use it personally during website development projects myself as I like to see certain directories, while protecting others. You can use an.htaccess file as well (currently being developed for implementation in v1.2), but it usually protects all directories and then the directories will be forbidden instead of visible.


v1.2– 7th Mar 2012
  • Added.htaccess detection and protection.
v1.1 – 5th Oct 2011
  • Removed $HTTP_POST_VARS for PHP5.x compatibility.
  • Added a “Check All” and “Uncheck All” button to make the script a little easier to work with.
  • Added write detection rule to ensure Directory Protector can write to the chosen directories.
  • Added better index detection rules to ensure Directory Protector only protects directories that haven’t already been protected by index files.
  • Made the font a little larger for readability.

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


5 October 11

Last Update:

High Resolution:

Compatible Browsers:
IE7, IE8, IE9, Firefox

Files Included:

Software Version:
PHP 4.x, PHP 5.x


eCommerce, eCommerce, All Items, Directory Protection, Site Protection