I am developing a web application and I need to restrict the image path view. No one should be able to right click on the image and see the image path or see the image path during view source. I know I can disable right click but I need a server side solution
You cannot stop people from taking your images. I assume that is what you are trying to achieve. In order for an image to be displayed in a web browser it must first be downloaded, after which time it exists on the client machine somewhere, normally the cache.
Remember, even with silly deterrents like no right-click etc, all one has to do is take a screen-shot and bingo they have your image.