-
hi
My site was attacked by Internal Site Search Spam.
Please help on this.
-
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, please click the reported URLs or use the URL inspection tool of your GSC account to figure out how Google is discovering those URLs via the referring page information.
You can also share the screenshot in the sensitive data section after doing so.
Let us know how this goes.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
The referring URL on those pages is not working.
In this case, we recommend redirecting those pages to
410
status instead so they won’t be indexed and removed from the search results pages.Since the URLs common path is /search/, then you can add this regex redirect on your site (assuming that you’re not using the /search/ in your actual URLs):
Source: search/(.*) Maintenance code: 410
Here’s a link you can follow to add a regex redirect:
https://rankmath.com/kb/how-to-use-regex-redirects/Once done, give Google some time to recrawl your site and remove them eventually on the SERPs.
Hope that helps.
Thank you.
hi
any idea how those spam URLs when through even with robots.txt?
Also, is this the correct settings under rank math >> https://snipboard.io/vrw87L.jpg
hi following up on this
Hello,
We apologize for the delay in response.
Please ensure the Source URL is set to
search/(.*)
since you are dealing with a regex type redirection.See if redirecting the unwanted pages will resolve the issue. We can also confirm that the
/search/
and?s=
pages are set to noindex in their robots meta so Google shouldn’t be indexing them in the next crawl.Lookling forward to helping you with this one.
Hi
Abit confused how to set this up?
Possible to show an example screenshot on setting this up on Rank Math?
Thanks alot
Hello,
Here is the tutorial you can follow: https://rankmath.com/kb/how-to-use-regex-redirects/
Here is another one on creating redirects with Rank Math: https://rankmath.com/kb/setting-up-redirections/
In case you want to explore the 301 redirects, here is a dedicated tutorial for that: https://rankmath.com/blog/bulk-301-redirects-wordpress/
Hope that helps.
hi
i read it but not sure if i’m doing right?
can take a screenshot how to add this in rank math?
Source: search/(.*)
Maintenance code: 410hi
can know which is the right setup for the following
“Since the URLs common path is /search/, then you can add this regex redirect on your site (assuming that you’re not using the /search/ in your actual URLs):
Source: search/(.*)
Maintenance code: 410”Screenshot A >> https://snipboard.io/VJvOuw.jpg
Screenshot B >> https://snipboard.io/kcIQZy.jpgWhich is the right one to set this up.
Thanks alot
Hello,
Screenshot A is correct setting as suggested by my colleague earlier.
Let us know if this resolves the issue or not.
Looking forward to helping you.
Thank you
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘Internal Site Search Spam’ is closed to new replies.