Can files be renamed for each session?

0

I have in a web, images named for example: "imagen01.png", "imagen02.png", "imagen03.jpg" to which for an optimization theme, I need to take them if or if to SVG. I kept reading about how vulnerable these files are to an XSS attack and I was worried. Then I thought of using those same SVG files without renaming, and that at the time of the page load is "renamed" randomly so that the user can never see the real name, for example "Shg9mOA.svg" and that this is changing in each session. I do not need code, just read opinions about if I am facing the problem well ... Will it bring an overload to the server? Can it be done with PHP? With what function? Is there an easier / simple alternative solution?

    
asked by Max Powel 30.04.2018 в 02:35
source

0 answers