To stop a page from showing up on search engine results, edit the robots.txt file located in your public directory, and add the line “Disallow: /<your-page-url>/”.
An example of this line might be:
Disallow: /index-example/
The example above will stop Google and other search engines from indexing the page at https://forthdev.com/index-example as well as any children of this page.
If you use cPanel, you will find the robots.txt file in the public_html folder of the file manager. You may need to create it fresh if it doesn’t exist already.
It takes some time for search engines to crawl through the web and pick up this information so it is recommended that you apply this setting early or you may need to wait a few weeks for the search engines to update.