If you have a shield, it can be used to block the Dilo's ranged attacks.

More Dilophosaur Encountering Tips