How to make a block visible only to one page I have made a custom block and i want to make it visible only to pages that follow this pattern: user/[user-id]/galleries.  

Is there a way to do it?
There are Visibility settings for blocks in Drupal. One of options is "Show block on specific pages". Select "Only the listed pages" and input user/*/galleries