Its very easy to setup custom error documents, and forbid access to directories and indexes.
403 "Forbidden" is acomplished by first creating the custom error page, then adding a link to it in a .htaccess file in the public_html, and adding "Options All -Indexes" directive to the .htaccess
like so:
Step 1:
create your custom error page
step 2:
create file, name it .htaccess
Step 3:
edit file and add the following:
.htaccess
Quote:
## Error Page
ErrorDocument 403 /page/22.html
Thats it! Your done.
No comments:
Post a Comment