WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 1 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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