How to add page restrictions for blocks in drupal? I'm using the drupal administrator menu for the settings
there i have a page called /desert/234234
the block should appear only when the url is /desert/(desert_id)
how can i restrict that
In Drupal 7 you can use PHP code in the block's "Visibility settings."

Steps


Go to admin/modules and enable the PHP filter module


Go to admin/structure/block and click on "Configure"




Enter the following PHP code (including &lt;?php and ?&gt;) in the Page settings.