Does /?q=search/ means I can't web scrape the search websites that ends with =search/ ? Can I scrape an URL ends with =0#search ?
Asked
Active
Viewed 231 times
-1
-
1There is not enough information to answer this question. Please provide the actual path you are concerned about and the actual robots.txt entry. – Michael Hampton Aug 16 '21 at 11:29
1 Answers
1
First of all it's robots.txt. Next, supplying something in there doesn't magically means that you "can't web scrape the search". It's just a directive for the robots to follow. But it won't stop them to fetching those URLs if they want to (i.e. some malicious web fetchers & scripts might just ignore your robots.txt or even use information from it to fetch info you wanted to protect).
And answering your question, you can't specify an anchor with robots.txt. This has been answered here: https://stackoverflow.com/questions/53676849/robots-txt-handling-a-in-a-url
Besides specifying a directive Disallow in robots.txt doesn't includes location. It's just a substring match anywhere in the URL.

NStorm
- 1,312
- 7
- 18