In children with high-risk conditions, primary and secondary prophylaxis with antibiotics may be indicated to prevent SBP. Agents such as norfloxacin or trimethoprim-sulfamethoxazole are commonly used. Additionally, managing the underlying condition, such as optimizing liver function or controlling ascites, is important in reducing the risk of SBP.