ENES ATEŞ
ENES ATEŞ

Reputation: 1

Add noindex tag to specific URL

I have buttons and links in my Register page that allow me to log in with gmail and linkedIn. In order for these links not to be indexed, they have been indexed even though I have blocked them in the robot.txt file. How can I give these links a noindex tag?

here is the link that I need to block: example.com/connect/linkedin

Note: I don't want to prevent my register page from being indexed, so I don't use noindex in the <meta> tag. I am developing my website with Symfony framework.

Upvotes: 0

Views: 717

Answers (1)

yortem
yortem

Reputation: 112

Usually rel="nofollow" can be used to tell crawlers not to crawl those links, but since your pages are already indexed Google might do whatever they want at this point. try blocking the page itself from bots \ google, through the PHP code.

Upvotes: 1

Related Questions