I have spam websites linking to my website using query strings. These strings look like:
https://example.com/page/2/?site=forum_topic&topic=123
My site is not a forum and such strings should not be generated, yet I’m getting a lot of them. The problem is made worse by WordPress because the page is paginated, so the next and previous links also have the ?site=forum_topic&topic=123
.
The pages are being canonical correctly, but Google is still ranking some in search and even finding new content through these links before the canonical link, so it’s a mess right now. Is there anything I can do in GeneratePress to stop this? Can I strip the ?site=forum_topic&topic=123
from the URL and leave https://example.com/page/2/
?