: My website URLs have fake search term query strings that are appering in Google search A few days ago I was informed that my website appears when searching some random terms with a URL that,
A few days ago I was informed that my website appears when searching some random terms with a URL that, as far as I know, does not belong to it.
My domain: example.com
Search terms: "olympic"
Result listed: example.com/?threadmills-and-corn
When I click on the URL listed in the results it redirects me to the main page of my website.
Why are those URLs appearing in search?
More posts by @Courtney195
1 Comments
Sorted by latest first Latest Oldest Best
This is a simple thing to fix.
It is done with robots.txt
User-agent: *
Disallow: /*?
This will help to block access to all URLs that include a question mark (?) (more specifically, any URL that begins with your domain name, followed by any string, followed by a question mark, followed by any string).
See: serverfault.com/questions/139487/meaning-of-disallow-in-robots-txt
Disclaimer: Use with EXTREME care.
Added:
As goes the immediate concern of removing these urls it would be best in my view to indicate to Google the updates on the robots.txt page via the dedicated robots.txt section on Google Search Console.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.