Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent search pages from showing up in the results of searches. #15081

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

jbum
Copy link
Contributor

@jbum jbum commented Mar 7, 2024

Search result pages contain injectable content. Bad actors can create false search results by asking Google to search on search-result URLs. These pages then show up in search results.

This is a short-term fix for the problem, that inhibits such pages from appearing onscreen. It does not change the paging counts, and a longer term fix will be needed.

Here is an example of a page where all the results have been inhibited, but the page-count still shows up.

image

Ideally, we need administrator access to the Google Programmatic Search Console, so we can inhibit these pages by URL on the server-side.

I will continue to modify the current method so that it has fewer artifacts.

Copy link
Contributor

github-actions bot commented Mar 7, 2024

Preview site available at jbum-inhibit-search-page-results.pr.cannabis.ca.gov.

@jbum jbum merged commit edc4276 into main Mar 7, 2024
1 check passed
@jbum jbum deleted the jbum-inhibit-search-page-results branch March 8, 2024 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant