Mobile app version of vmapp.org
Login or Join
Courtney195

: 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,

@Courtney195

Posted in: #Search #SearchResults #Security

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

1 Comments

Sorted by latest first Latest Oldest Best

 

@Twilah146

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme