For an SRX as a secruity device the best way to restrict self traffic is the method that Pulkit points out. This uses session aware security policies.
the firewall filter method is more aimed at devices in packet mode and is the method we have to use on devices without session tables like the MX routers.