scrub pdf/txt files and non-subdomain search results

This commit is contained in:
Kyle Drake 2024-12-12 16:35:16 -06:00
parent 40bef7d125
commit afef407744
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ get '/browse/search' do
cx: $config['google_custom_search_cx'],
safe: 'active',
start: @start,
q: Rack::Utils.escape(params[:q])
q: Rack::Utils.escape(params[:q]) + ' -filetype:pdf -filetype:txt site:*.neocities.org'
})
@items = []