How to Disallow a Particular Page By Robot.txt?

Please use the below code in the robots.txt file.

User-agent: *
Disallow: /

This for entire website and home page

Suppose you want to block the inner page example.com/disallow-your-commenting, please use the below code in robots.txt file:

Disallow: /disallow-your-commenting
 
Back
Top