Deny Access To Folder On A Website

Written by Allen White on. Posted in Web

In the days of the Google Panda Algorithm there are times when we want to stop Google bot or for that matter all bots indexing content from within a particular folder. The following command below also stops users viewing files within the folder and listing the contents of the folder on the website.  First we need to create a file within notepad or your favorite HTML editor. Call it .htaccess.

.htaccess

Then within the file add the following lines of text .

ust htaccess to block access to folder

The simply save that /htaccess file to the folder on your website that you do not want to index. Take a look at the earlier article on how to remove pages from googles index.
To test simply try and go to the folder to view the contents or to be 100% sure that google cannot browse that folder do a google fetch from within webmaster tools.

 
Allen White
at
Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin. https://uk.linkedin.com/in/allenwhiteconsultant0001

Tags:

Leave a comment

Categories

(c) Techieshelp.com. Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.
!-- BuySellAds On-Site Shopping Cart -->