Disable page list block link on certain levels?

Permalink
Hello,

I'm using the page list block to list items on homepage, then on sub pages to list it's own sub pages, how would I get the following code not to display at the 3rd level or disable the a href?

<a href="<?php echo $url ?>" target="<?php echo $target ?>"><?php echo $title ?></a>

a quick recap I need it to be present on home page listing and and home page sub listing, but not on the next subpage listing.

Cheers

Mal