Filter listpicker base web url

I have a listblocks(1) blocks(2)

  1. How do i filter listpicker item base web url.
    Ex : if web url is A then listpicker only show 1 and 2
    if web url is B then listpicker only show 3,4 and 5
    if web url is C then listpicker only show 6

  2. listpicker with 100 if blocks vs webviewer 100 if blocks, which way is fater ?

I don’t think you have valid logic to work