Prevent Google indexing on specific folder [duplicate]

1

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

    
asked by anonymous 15.08.2017 / 14:26

1 answer

1

For Google , you can use:

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

Font

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 are using Apache :

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