We have very little afaik on planetary defences. However, a planet with a good industrial base should be able to make a generational investment in system defence.
Find a suitable asteroid. Fit it with basic essential components (not warp drive or geller field). It might have 2 broadside slots and a void shield - perhaps a modest drive to give it Move 1. A dozen of these orbiting a world and you with need a fleet to take it.
If a world could build one of these every 50 years, in the timescale of the Imperium the average industrial world should be very tough.