Well-designed faraday's cages, redundant circuitry, using special alloys, underground bunkers etc are used to protect against EMP.
But I doubt any of these can guarantee 100% protection against all types of EMP attack.
I don't know what the IAF is doing but they better be ready, China's got it...