Gimli's text CAN prevent the discarding. His text says "about to be discarded by an opponent". The ability on the site is a Shadow action, so your opponent is the one doing the discarding (using the ability on the site as his own). In that case, Gimli can prevent it. Make sense?