I am seeing the following things very often in the recent search block

favicon.ico
admin/classes/errors.php
upload/admin/includes/header.inc.php

Also, can we filter that some "bad words" and adult keywords aren't included ?

Thanks

Comments

fgm’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Could you explain exactly what you see ? The two php file names do not belong to Zeitgeist, so it seems someone is using your search box to search for these terms, and if so, it's only natural for you to see them in the recent search block. Is this text you are seeing as recent search entries, or is this text the appears as an error ?

If you are displaying this block for non-admin users in spite of the instructions on the module, you are creating some vulnerability on your site, as explained on the project page "It is generally NOT a good idea to activate the Zeitgest latest searches block for public display, as it can be used to display inappropriate content just by searching for it."

Regarding filtering, there is currently no built-in way to falsify the results by removing such actually searched-for words. However, this is easy to implement on a per-site basic. Instead of using the default ZG blocks, create custom PHP blocks and invoke the module functions, then strip out whatever you wish not to see. Assuming you've set ZG to not display the search type, you could use something like this, assuming you defined a filter on your own that returns false on rejected words:

$words = array_keys(_zeitgeist_block_latest(10));
$less_words = array():
foreach ($words as $word) {
  if (my_own_custom_filter_agrees($word)) {
    $less_words[] = $word;
  }
return implode(', ', $less_words);

Also, since this does not seem to break the site, from your description, downgrading from critical: this is only for site-breaking issues.

fgm’s picture

Status: Postponed (maintainer needs more info) » Fixed

No answer for over I week. Assuming user error. Feel free to reopen if needed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.