Hi @arshi01, thanks for dropping us a message.
Generally speaking, Wordfence’s ?wordfence_lh=x&hid=xxx...
query string URLs are used by Live Traffic so are completely normal activity, but not normal to see in Google. wordfence_lh
is checking whether the visitor was detected as human. hid=...
is an encrypted unique identifier so the record can be matched to another in the database.
With other customers, when Google bots start listing them as “legitimate” site pages, this is usually due to a theme or plugin misconfiguration where any invalid page URLs are being redirected to the homepage. The expected behaviour when these specific URLs are visited is to return a totally blank page and for Google not to index them for search results.
Clearing any caches such as Advanced Caching plugin and/or server-side caches you may have on your host might reduce the chance of these URLs being served by mistake in case your theme or other plugins were ever misconfigured in the past.
You may need to contact your theme provider or developer for further assistance, or turn off any settings you have for redirecting any not found/invalid pages to another page on your site – usually the homepage.
Thanks,
Peter.