| My colleagues and I just made an interesting discovery in the Google Search Console. For one of our sites it showed a lot of links where a search query parameter was injected. The parameter looks similiar to "?=hack anyone's snapchat,【2024 TelegramChannel:Kunghac】[...] snaphack online [...]". The full parameter list can be seen in the GitHub Gist[0] below. My first action was to search through all of the code and the database for specific words from the parameter, but I couldn't find anything. Afterwards I searched Google for
1. google search console "snaphack" (3.530 results)
2. "Kunghac" (21.900.000 results!) I was surprised to see a lot of results where similiar parameters were attached, always linked to the search query parameter (?q, ?search, ?s, ...).
For the first result even dev.mysql.com was listed on the first page. Maybe someone here knows what's going on? [0]: https://gist.github.com/RafaelKr/c418fc2a0a5410ae746b49f4fff... |
If you don't use any search parameter or they don't use the one you are using, I would recommend adding a [canonical meta tag](https://en.wikipedia.org/wiki/Canonical_link_element) which signals to Google that only a specific version of a site is the source of truth. For example, adding a canonical by removing the query string from the current URL, example.com/page?foo=bar and example.com/page would have set the canonical value to example.com/page. So even if people link to specific parts which includes an arbitrary query string, Google will only index the one you specify without the query string, and these links you mentioned will not do anything (except potentially showing up once or twice in your analytics software).