D
David Christian
I have a robots.txt file that looks like this:
I have dozens of files and folders in my wildcard disallow rule. I then want to additionally block access to URLs that start with /p- for specific crawlers like DataForSeoBot. Prior to adding the specific rule for DataForSeo, it was seeing the long list of URLs in my wildcard rule. After I added that additional specific rule by their bot name, the ONLY Disallow rule that DataForSeoBot now sees is the /p- one. Are they reading the robots.txt file incorrectly, or did I not write it incorrectly? I hope I don't have to repeat the entire first rule for every crawler that I also want to disallow /p- as there are about a dozen of them. I also tried moving the specific, by name rule to the top before the wildcard rule, but it made no difference.
I am testing by using the feature on their website to view how they are reading the robots.txt file.

Continue reading...
Code:
User-agent: *
Disallow: /account/
Disallow: /captcha/
Disallow: /checkout/
User-agent: DataForSeoBot
Disallow: /p-
User-agent: UptimeRobot
Disallow: /p-
I have dozens of files and folders in my wildcard disallow rule. I then want to additionally block access to URLs that start with /p- for specific crawlers like DataForSeoBot. Prior to adding the specific rule for DataForSeo, it was seeing the long list of URLs in my wildcard rule. After I added that additional specific rule by their bot name, the ONLY Disallow rule that DataForSeoBot now sees is the /p- one. Are they reading the robots.txt file incorrectly, or did I not write it incorrectly? I hope I don't have to repeat the entire first rule for every crawler that I also want to disallow /p- as there are about a dozen of them. I also tried moving the specific, by name rule to the top before the wildcard rule, but it made no difference.
I am testing by using the feature on their website to view how they are reading the robots.txt file.

Continue reading...