If I upload a given image like my-image.jpg, then following image resizes occurs:

http://www.mysite.com/wp-content/uploads/YEAR/MONTH/my-image-100x100.jpg http://www.mysite.com/wp-content/uploads/YEAR/MONTH/my-image-200x150.jpg http://www.mysite.com/wp-content/uploads/YEAR/MONTH/my-image-500x300.jpg

also the original image is uploaded:


I have two question about which actions try to:

1 Question

Rename image name to a complicated long name like 5702703214_85bfb55948.jpg:



2 Question

Avoid access to original image uploaded, let access to thumb, medium and large, but deny access just only to the original image uploaded?

Thanks in advance

1 Answer 1


create shortened URL function, then add filter on the_content() to replace all img src URL to shortened URL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.