cara agar website tidak terindek di google yaitu dengan membuat robot.txt dan mengatur htaccess
file robot.txt
User-agent: *
Disallow: /
# optional — tetap izinkan file penting
# Allow: /assets/
# Allow: /images/
file htaccess
<IfModule mod_headers.c>
<FilesMatch "\.(php|html)$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>
</IfModule>