<if condition="strpos($_SERVER['HTTP_REFERER'], 'www.x.') !== false"> <!-- show your content here //--> </if>