Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an images directory "wb_imgs" inside the root directory. I want that no one can change / overwrite or delete the images of this directory. How can I do that using .htaccess or some other way???
Posted

1 solution

You can simply set up permissions for the directory accordingly for read-only access; it depends on OS and has nothing to do with programming, just a simple administration. However, the image and other files cannot be changed by the users of Web application anyway, unless you intentionally write some server-side code to do that.

—SA
 
Share this answer
 
Comments
Espen Harlinn 23-Oct-11 6:41am    
Right!
Sergey Alexandrovich Kryukov 23-Oct-11 19:00pm    
Thank you, Espen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900