Here’s a fix for strange queries after the question mark:
Add these three lines to your .htaccess file:
RewriteEngine on
RewriteCond %{QUERY_STRING} strangequery
RewriteRule ^.*$ http://www.yourwebsite.com/? [R,L]
Replace “strangequery” with the strange query.
Replace “http://www.yourwebsite.com” with your website address.