A
A
aPilot2016-03-15 12:18:59
Search Engine Optimization
aPilot, 2016-03-15 12:18:59

How to generate a 404 error for all search engines?

How to issue a 404 error for all search engines on a certain file, but not for users?
How is it technically implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2016-03-15
@dimonchik2013

1) check useragent
2) return 404
list of agents:
www.useragentstring.com/pages/Crawlerlist
see googlebot, bingbot, yandex, baidu, Mail.Ru Bot

M
Maronus, 2016-03-15
@Maronus

You need robots.txt . Settings may vary for different search engines, so go ahead and read the documentation for the ones you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question