Silly jester hat is given as a reward when completing the Fremennik Islesquest. It offers no defensive bonus.
If a player were to lose their Silly jester hat, they could get it back by searching the king's chest on Jatizso. Upon equipping the hat, a player can hear the bells on the hat jingle. There is a glitch which may cause a player's head to become bald.