How to add page restrictions for blocks in frontpage?
Your suggestions both involve using the PHP setting for block visibility, which isn't available by default and isn't recommended for security reasons. If you already have PHP filter enabled and want to use it, you can probably use the code:

&lt;?php
  if (drupal_is_front_page() &amp;&amp; !isset($_GET['page'])) {
      return TRUE;
  }
  return FALSE;
?&gt;


The option I would recommend (which avoids using PHP filter) would be to install the context module (with this patch https://drupal.org/node/904416) and position the blocks using that. You can set it to appear in all circumstances except when on the home page with query string '*shs_term_node_tid_depth=*'.

If you don't know how to use context module, there are lots of tutorials and it's fairly simple.