Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
In this case, you may need to apply additional directives to the robots.txt file to ensure that Google will not crawl and index these types of URLs.
you can block those spam URLs by editing your robots.txt file and adding the following disallow rules:
Disallow: */slides*
Disallow: */search/*
Once done, allow Google some time to re-crawl your site to reflect the changes.
Hope that helps.
Thank you.
Many thanks for this, well noted.
Any idea how those links were created at GSC?
I cannot find any other trace in my DB or logs or even 404 errors. Nothing.
Any idea?
Just to be able to trace if there is any other vulnerability somewhere.
Thanks again.
Hello,
Thank you for your patience.
You can use the URL Inspection tool of your GSC account on those URLs to check the referring page and figure out from where Google is discovering those URLs:
https://search.google.com/search-console/welcome?action=inspect
Looking forward to helping you.
Hello,
Glad that helped.
If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.
Looking forward to helping you.
Thank you.