Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Prevent files from Indexing in Search engine  (Read 2216 times)

0 Members and 1 Guest are viewing this topic.

dustin

  • Guest
Prevent files from Indexing in Search engine
« on: March 15, 2014, 01:14:27 pm »

In order to prevent the files from indexing in Search Engine, here are the steps you need to follow.
1. Create a file called robots.txt in the home directory of the Site. (i.e public_html)
2. For Example, if you don’t want the files in a folder called admin to be listed in search engines, paste the below code in robots.txt file.
==========
User-agent: *
Disallow: /admin/
==========
3. The above command will prevent the files beginning with name admin from listing in Search engines.