K
K
Kamil2020-09-04 12:40:53
robots.txt
Kamil, 2020-09-04 12:40:53

Am I closing in robots correctly?

Please tell me, I'm confused.
Am I doing it right It is

necessary to close the indexing of everything that comes after ads

/account/ads/1
/account/ads/6?url_news=332


In robots I write like this:
User-agent: *
Disallow: /account/ads/*

In theory, everything after /ads/ should be banned from indexing, right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-09-04
@Lakika

Yes that's right. It is possible even without *:

User-agent: *
Disallow: /account/ads/

/account/ads/will also be closed from indexing in both cases.
You can check robots.txt, for example, through Yandex.Webmaster https://yandex.ru/support/webmaster/indexing-optio... (even if the site is not added there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question