lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Surface which line in robots.txt is blocking indexing

Open russhuq opened this issue 8 years ago • 4 comments

CLI said the page is blocked for indexing but CDT said it isn't blocked, please see the video http://nimb.ws/oXGYa3.

russhuq avatar Mar 27 '18 03:03 russhuq

Thanks for the report and attached screencast @russhuq that really helps! ❤️

robots.txt files weren't checked until version 2.9.2 which is why you're seeing it pass in 2.8

patrickhulce avatar Mar 27 '18 16:03 patrickhulce

Thanks for the reply @patrickhulce!

Which specific robots.txt instruction is causing the page to get blocked would you guys consider adding this feature as well?

russhuq avatar Mar 27 '18 17:03 russhuq

@kdzwinel how difficult is it to add the blocking directive to the table like OP is wanting?

patrickhulce avatar Mar 27 '18 18:03 patrickhulce

Apparently @samclarke predicted that feature request, because he added getMatchingLineNumber in robots-parser v2.1.0 🎉 I'll be happy to implement it as soon as #4875 lands.

kdzwinel avatar Mar 27 '18 18:03 kdzwinel