2017-10-23, 12:36 AM
(2017-10-22, 03:50 PM)sarisisop Wrote: [ -> ]Thank you so much for sharing these very useful tips.(2017-10-22, 12:45 PM)ataulhaq Wrote: [ -> ]Can you please tell me which codes should i put in robot.txt file. I just searched my public_html folder and there I could not found it. So I want to create one but don't know how?
Your guidance will be highly appreciated.
You need to create a new file titled
robots.txt
Then you can add places you don't want the Bots to visit, for example I have this in mine.
User-agent: * Disallow: /online.php Disallow: /newthread.php Disallow: /ratethread.php Disallow: /printthread.php Disallow: /calendar.php Disallow: /member.php Disallow: /usercp.php Disallow: /usercp2.php Disallow: /newreply.php Disallow: /search.php Disallow: /memberlist.php Disallow: /private.php Disallow: /member.php?action=register
You can also block Bots like this.
User-agent: Baiduspider Disallow: / User-agent: Yandex Disallow: /
That's just an example, and you need to tailor it to your requirements. Some people don't bother using them and some bad bots will ignore them, but it can stop Google looking at pages you don't want them to see.