I have a small website with few users, lately i've been digging into website security and stumbled across xss attacks. I found a loophole where in my code through self testing where i could create a username as <b>username</b>
and it would appear in bold. Now, any action taken by the user is sent to my server for validation, I've explicitly banned "<
" & ">
" chars. Will this be enough to prevent xss attacks?
Also, my text fields are very limited (10 letters), though, i guess this can be bypassed by calling the function in chrome dev tools?
Will this do or is there anything else i should be aware of? Note that this site contains no important data to be stolen or hacked, i just want it fully protected as xss attacks can be quite nasty and redirect users and what not, ultmiately i feel responsible that my site works the intended way..