Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12461

Reply To: Which Custom Code text box do I use to add custom htaccess code?

$
0
0

To add and save htaccess customizations permanently use BPS Custom Code.  The steps to add/save the DO NOT SHOW DIRECTORY LISTING htaccess code and the DIRECTORY INDEX FORCE INDEX.PHP htaccess code to BPS Custom Code are below:

1. Copy the modified/customized code below to this BPS Root Custom Code text box:  CUSTOM CODE DO NOT SHOW DIRECTORY LISTING/DIRECTORY INDEX
2. Click the Save Root Custom Code button to save your Root custom code.
3. Go to the Security Modes page and click the Create secure.htaccess File AutoMagic button.
4. Select the Activate Root Folder BulletProof Mode Radio button and click the Activate|Deactivate button.

# DO NOT SHOW DIRECTORY LISTING
# Disallow mod_autoindex from displaying a directory listing
# If a 500 Internal Server Error occurs when activating Root BulletProof Mode
# copy the entire DO NOT SHOW DIRECTORY LISTING and DIRECTORY INDEX sections of code
# and paste it into BPS Custom Code and comment out Options -Indexes
# by adding a # sign in front of it.
# Example: #Options -Indexes
#Options -Indexes

# DIRECTORY INDEX FORCE INDEX.PHP
# Use index.php as default directory index file. index.html will be ignored.
# If a 500 Internal Server Error occurs when activating Root BulletProof Mode
# copy the entire DO NOT SHOW DIRECTORY LISTING and DIRECTORY INDEX sections of code
# and paste it into BPS Custom Code and comment out DirectoryIndex
# by adding a # sign in front of it.
# Example: #DirectoryIndex index.php index.html /index.php
#DirectoryIndex index.php index.html /index.php
  • This reply was modified 23 hours, 37 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12461

Trending Articles