title: How to set up a robot.txt which only allows the default page of a site
body: <p>Say I have a site on <a href="http://example.com" rel="noreferrer">http://example.com</a>. I would really like allowing bots to see the home page, but any other page need to blocked as it is pointless to spider. In other words</p>
  
  <p><a href="http://example.com" rel="noreferrer">http://example.com</a> &amp; <a href="http://example.com/" rel="noreferrer">http://example.com/</a> should be allowed, but 
  <a href="http://example.com/anything" rel="noreferrer">http://example.com/anything</a> and <a href="http://example.com/someendpoint.aspx" rel="noreferrer">http://example.com/someendpoint.aspx</a> should be blocked.</p>
  
  <p>Further it would be great if I can allow certain query strings to passthrough to the home page:
  <a href="http://example.com?okparam=true" rel="noreferrer">http://example.com?okparam=true</a> </p>
  
  <p>but not
  <a href="http://example.com?anythingbutokparam=true" rel="noreferrer">http://example.com?anythingbutokparam=true</a></p>