Remove following pages from Google?

Please help me to remove following pages of my website from google,
mywebsiteurl/images
mywebsiteurl/images/core/?C=S;O=A
mywebsiteurl/images/email/?C=N;O=D
mywebsiteurl/images/portfolio/projrcts/?C=M;O=A
and So on

I try with robots.text
User-agent: *
Disallow: /images/

But this code doesn’t work.

Unless I’m not seeing something (a possibility) that looks like it should work.

But if you want to not have any images indexed, I think htaccess would be a good idea

https://developers.google.com/search/reference/robots_meta_tag eg.

<Files ~ "\.(png|jpe?g|gif)$">
  Header set X-Robots-Tag "noindex"
</Files>

"I try with robots.text
User-agent: *
Disallow: /images/

But this code doesn’t work"

then create the sitemap and submit again

or use above mentioned code

Is there any mistake in my robots.txt code or it’s proper?
And another things multiple images link are listed. so, i can noindex link one by one? or all images removed by using one code.

OKay

I don’t know of any way to have the sitemap.xml file exclude indexing. @adgonlinesolution please explain.

From what I can see, what you posted for the robots.txt (not .text) should exclude everything in the “images” folder.

But if you wanted to do individual files you could do each on its own line.

Google does warn that robots.txt is not guaranteed to exclude items from indexing if the URLs can be reached from other pages or sites. Meta tags are recommended as a more reliable solution.

You could also try Google’s robots.txt tester, to check whether your rules are being applied as you expect.

2 Likes

From the Search Console i remove all this URL and i think its work. Now its not show on SERPs.

Good Neha.
Also mention noindex tag for the url which you want to hide from indexing.

Okay

You can remove following pages from your website from google.

Read carefully & follow these steps:

Syntax

User-agent: Googlebot-Image
Disallow: /images/dogs.jpg

More info follow this link

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.