0

I am covering some security vulnerabilities in my ASP.NT MVC Web App, and I don't want every one to know my structure, folders name, orany information that could help him to attack me. So I want to know is it possible to encyrpt the file/images paths and how to? Or if any one have any suggestion.

Normal Output:

  ~/Images/Articles/hgasdh7y8273y82.png   //Real Path

Desired Output:

  /anything/anything/hgasdh7y8273y82.png    //Fake Path

P.S: I already tried to make it with generic handler, but it affects the performance badly.

Thanks

user2120121
  • 665
  • 1
  • 6
  • 15
  • 1
    Is it really that much of an issue that they know your image folder? It's not like you have directory browsing enabled or anything (well you shouldn't :)). – Mathew Thompson Dec 23 '14 at 08:54
  • @mattytommo Its important to secure your Image path, and don't provide it easily to hackers – user2120121 Dec 23 '14 at 11:09
  • Why? What exactly are they going to do with the image path? It's not like they can find that, then navigate elsewhere as I say you wouldn't have directory browsing turned on anyway. – Mathew Thompson Dec 23 '14 at 12:39
  • To answer your question though, your answer is here: http://stackoverflow.com/questions/1146652/how-do-i-route-images-using-asp-net-mvc-routing – Mathew Thompson Dec 23 '14 at 12:40

0 Answers0