Prevent Google indexing in specific folder

Asked

Viewed 32 times

1

I have a domain with a site developed in Wordpress. On the server I created a folder called /chat, I do not want Google to index this folder. What to do?

1 answer

1


To the Google, can use:

<meta name="googlebot" content="noindex">

Source

For the whole folder as mentioned in these answers:

robots txt.

User-agent: *
Disallow: /chat

You can test your file robots.txt

robots.txt Tester

If you’re using Apache:

<Directory /var/www/chat>
    #O sinal "-" representa "no"
    Options -Indexes 
</Directory>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.