We find necessary and sufficient conditions on the function \(\Phi \) for the inequality \(\begin{aligned} \Big |\int \limits _\Omega \Phi (K*f)\Big |\lesssim \Vert f\Vert _{L_1(\mathbb {R}^d)}^p \end{aligned}\) to be true. Here K is a positively homogeneous of order \(\alpha - d\) , possibly vector valued, kernel, \(\Phi \) is a p-homogeneous function, and \(p=d/(d-\alpha )\) . The domain \(\Omega \subset \mathbb {R}^d\) is either bounded with \(C^{1,\beta }\) smooth boundary for some \(\beta > 0\) or a half-space in \(\mathbb {R}^d\) . As a corollary, we describe the positively homogeneous of order \(d/(d-1)\) functions \(\Phi :\mathbb {R}^d \rightarrow \mathbb {R}\) that are suitable for the bound \(\begin{aligned} \Big |\int \limits _\Omega \Phi (\nabla u)\Big |\lesssim \int \limits _\Omega |\Delta u|. \end{aligned}\) Bibliography:16 titles.