How to add page restrictions for blocks in frontpage? I have several blocks in my homepage : 2 statics and 1 with a pager.

I want to hide a static block when paging my homepage (after page "0").

I saw something similar in How can I show a block in a view page, excluding it&#39;s paginated pages but I do not know exactly what to put in the PHP code regarding the homepage : '' or '/' (instead of 'news' in this example) ?

&lt;?php
$url = request_uri();
$pos = strpos($url, "page");
if ($pos === false &amp;&amp; arg(0) =='news') {
return TRUE;
}
?&gt;


I tried also this code that I saw on this answser : How to add page restrictions for blocks in drupal? but it does not work for me.

&lt;?php
if (arg(0)=='/' &amp;&amp; is_numeric(arg(1))) {
return TRUE;
} else {
return FALSE;
}
?&gt;


My website is : http://femme.bonsplansdemarc.fr/
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.