I have 3 urls for a lightsail container, how would I make sure google only indexes one?

0

https://howtoabroad.com/ https://ec2-13-233-213-138.ap-south-1.compute.amazonaws.com/ https://13.233.213.138/

All point to the same instance, is it possible to index only one and not others?

  • These domains seem to point at an instance. Not a Lightsail container endpoint. Can you clarify why you mention "lightsail container" please?

질문됨 3달 전70회 조회
1개 답변
0

Hello.

Looking at the document below, it seems that if you return "X-Robots-Tag: noindex" in the response header, it will not be indexed.
In other words, I thought it would be a good idea to add a process on the application side that would return "X-Robots-Tag: noindex" in the response header when accessed from a domain other than the domain.
https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag

Or, how about configuring the web server (Apache, etc.) to block access from users other than the domain?

<VirtualHost *:443>
    ServerName howtoabroad.com
    DocumentRoot /var/www/html

    SSLEngine on
    SSLCertificateFile /path/to/your/certificate.crt
    SSLCertificateKeyFile /path/to/your/private.key
    SSLCertificateChainFile /path/to/your/chainfile.pem

    <Directory "/var/www/html">

        RewriteEngine on
        RewriteCond %{HTTP_HOST} !^howtoabroad\.com$
        RewriteRule ^.*$ - [F,L]
    </Directory>
</VirtualHost>
profile picture
전문가
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인