title: match query with regex and send to 404
body: <p>Google keeps inputing crap into my forms and searching and ending up with 0 result pages and is indexing them.
  Google has been searching stuff like this</p>
  
  <pre><code>0 0 41 1 0 0 9 1 0â€ž3ï¿½Â¨7 0 0 0â€ž3ï¿½Ã¬7;7 0 6 0 674 0 0 70 555
  </code></pre>
  
  <p>I have no clue why google would search for that. I have read online that google will input random crap and words it finds on pages into forms but Google is indexing this crap and I want it to stop.</p>
  
  <p>Google has searched for random crap like this thousands of time for a few months now. I hoped it would stop but it hasn't. Most of the searches start with the number 0.</p>
  
  <p>So what I would like to do is make it so if any search is done with a 0 for the start of the query, send it to a 404.</p>
  
  <p>I need something like this I am guessing. <br><br>
  Example code:</p>
  
  <blockquote>
    <p>if($_GET["query"] == "/Regular expression here/")<br>
    header("Location: 404 page");</p>
  </blockquote>
  
  <p>Does anyone know how I can match any query starting with the number 0 and then send it to a 404? 
  Thanks.</p>