What is web accessible?

All the files of a folder are listed out in the browser. See the image below.

How to prevent this?

Index file:

By keeping ‘index’ file in that folder. By default the browser looks for ‘index’ file (no matter what it is .htm, .html or .shtml)

Once there is index file means the contents cannot be listed out as in the figure. If you have a folder with out ‘index’ file in it, try typing its URL in the browser. Like ‘http://www.yourdomain.com/privatefolder/’. You will see your files as in the figure provided your folder permissions are 755.

.htaccess:

Another way of stopping this is by keeping a small line of code in your root .htaccess file.

1. If you already have a .htaccess file in your root directory just copy and paste the following line in it and save.

Options All -Indexes

2. If you don’t have one then follow these steps:

* Open notepad on your computer.
* Create a text file called htaccess.txt.
* Copy and paste the above line and save it.
* Upload that htaccess.txt to your root directory in ASCII mode.
* Rename it to .htaccess

 

 

Web site Protection Tips:

* Step One: Protect folders by robots.txt – Stop search engine robots indexing Your private folders by ‘robots.txt’.
* Step Two: Protect folders by index file – Protect folders – Keep an INDEX file.
* Step Three: Protect folders by permissions – Folder protection – Directory and script file permissions.
* Step Four: Protect Your email addresses – Protect email address links – Stop email robots to get your email address.
* Step Five: Protect your downloads – Protect your downloads by password folder protection.
* Step Six: Protect your affiliate links – Affiliate link cloacking – Protect or hide your affiliate links.
* Step Seven: Protect Images – Image protection – Stop image hotlinking.

Author: Radhika (c)
http://www.webmasters-central.com/




Related Posts

  • No Related Posts Found