Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    These are normal spam queries. You’re pretty much doing now what they want you to do: by spamming your site with searches like this, the spammers want their URLs to show up and get links – and that’s what they’re getting here now.

    The best solution for this is some server-level filtering that will block the spam queries before they even start up your WordPress. If that’s not possible, it’s possible to block them in WordPress, or to block them from the logs.

    For example adding this to your theme functions.php will stop every search that includes “https://” immediately:

    add_filter( 'relevanssi_modify_wp_query', function( $query ) { if ( false !== strpos( $query->query_vars['s'], 'https://' ) ) die(); return $query; } );

Viewing 1 replies (of 1 total)
  • The topic ‘Relevanssi shows weird search queries on my page’ is closed to new replies.