  Weighted fractional Poincar\'e-type inequalities are proved on John domains
whenever the weights defined on the domain are depending on the distance to the
boundary and to an arbitrary compact set in the boundary of the domain.
