I heard about this hirz called Loh e sharaf shams and people wear it for protection, safety and such. It has symbols and characters to it? Is such a thing in islam allowed? Did the ahlulbayt allow any of these things?

I have not seen a hadith about this particular Hirz. It’s very popular in Iran and other places, but there is no hadith basis for it. It’s not haram to wear it though. I recommend wearing the Herz with the prayer of Imam Jawad (a) written in it. It’s called Herze Jawad. It’s good for protection and blessings.