Title: Image Viewing Permissions
Last modified: August 21, 2016

---

# Image Viewing Permissions

 *  Resolved [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/)
 * I am a bit of a noob, but having problems with images that I upload to my site.
   I use the Insert Image tool, upload it, but the image does not display on the
   tool, or on the website. However, the image IS showing on the FTP Server. Previous
   images uploaded in the same way just a few weeks ago are displaying, but ones
   uploaded this week are not. Can anyone please help? Example below
    [http://www.captive8media.com/wp-content/uploads/2014/01/broadcastscreenshot-300×244.jpg](http://www.captive8media.com/wp-content/uploads/2014/01/broadcastscreenshot-300×244.jpg)
 * Big thanks!!
 * _[Moderator Note: Please ensure that you are embedding links correctly in your
   posts.]_

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/image-viewing-permissions/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/image-viewing-permissions/page/2/?output_format=md)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528886)
 * > Forbidden
   > You don’t have permission to access /wp-content/uploads/2014/01/broadcastscreenshot-
   > 300×244.jpg on this server.
 * You have a permissions issue on your site. Check that anti-hotlinking isn’t enabled
   in your hosting account. If it is, try disabling it.
 *  Thread Starter [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528889)
 * But all other images ARE displaying correctly – would this still suggest its 
   an anti-hotlinking issue?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528890)
 * Impossible to determine from here. All I can say for sure is that it is a permissions
   issue.
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528893)
 * Please check the .htaccess file on the root and check if following code (similar
   to this) is in it:
 *     ```
       RewriteCond %{HTTP_REFERER} !^$
       RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com [NC]
       RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]
       ```
   
 *  Thread Starter [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528894)
 * This would suggest that hotlinking IS allowed, as would the fact that the other
   images are working:
    [](http://www.123-reg.co.uk/support/answers/Web-Hosting/Scripting/what-is-hotlinking-and-how-can-i-stop-it-htaccess-4136/)
 * (Odd, URL not displaying)
    “Hotlinking” (also called “hot linking”, “leeching”,
   and “bandwidth theft”) is when a web page of one website owner is direct linking
   to the images or other multimedia files on the web host of another website owner(
   usually without permission, thus stealing bandwidth).
 * When you have created an image or a multimedia file you usually want to protect
   it and control the use of it. You may not want people downloading your files 
   and putting them on their own websites with little or no credit to yourself. 
   Hotlinking is when other people use your files directly from your site, meaning
   that each time the file is viewed through their site, you lose bandwidth. This
   means that you could end up paying for the bandwidth.
 * For all 123-reg.co.uk hosting customers there is an easy solution. We have the
   Rewrite Engine activated, which you can set up to analyse any incoming requests
   for files and deal with them appropriately.
 * Using this facility is very easy. You simply need to create an .htaccess file,
   then add the following code:
 *  Thread Starter [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528896)
 * Hardeep, this is what it currently reads:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
   
       # compress text, HTML, JavaScript, CSS, and XML
       AddOutputFilterByType DEFLATE text/plain
       AddOutputFilterByType DEFLATE text/html
       AddOutputFilterByType DEFLATE text/xml
       AddOutputFilterByType DEFLATE text/css
       AddOutputFilterByType DEFLATE application/xml
       AddOutputFilterByType DEFLATE application/xhtml+xml
       AddOutputFilterByType DEFLATE application/rss+xml
       AddOutputFilterByType DEFLATE application/javascript
       AddOutputFilterByType DEFLATE application/x-javascript
   
       # remove browser bugs
       BrowserMatch ^Mozilla/4 gzip-only-text/html
       BrowserMatch ^Mozilla/4\.0[678] no-gzip
       BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
       Header append Vary User-Agent
   
       ## EXPIRES CACHING ##
   
       ExpiresActive On
       ExpiresByType image/jpg "access plus 1 year"
       ExpiresByType image/jpeg "access plus 1 year"
       ExpiresByType image/gif "access plus 1 year"
       ExpiresByType image/png "access plus 1 year"
       ExpiresByType text/css "access plus 1 month"
       ExpiresByType application/pdf "access plus 1 month"
       ExpiresByType text/x-javascript "access plus 1 month"
       ExpiresByType application/x-shockwave-flash "access plus 1 month"
       ExpiresByType image/x-icon "access plus 1 year"
       ExpiresDefault "access plus 2 days"
   
       ## EXPIRES CACHING ##
       ```
   
 * Should I add your code?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528898)
 * To debug this particular problem that a few people seem to be experiencing, I
   wrote a small WordPress plugin. It won’t change permissions on your site, it 
   just shows the read/write permissions of your uploads directory tree and highlights
   any issues.
 * It’s on GitHub here:
 * [https://github.com/WPRanger/wp-upload-permissions](https://github.com/WPRanger/wp-upload-permissions)
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528900)
 * Try WPRanger’s plugin, if it’s not working then try to re-upload the image with
   this plugin: [http://wordpress.org/plugins/enable-media-replace/%E2%80%8E](http://wordpress.org/plugins/enable-media-replace/%E2%80%8E)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528902)
 * Re-do your .htaccess file so that the WordPress block is at the **end** of the
   file.
 *  Thread Starter [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528906)
 * WPRanger – Ive installed the plugin, how do I look at the results? Sorry…like
   I said…NOOB!
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528908)
 * Visit **Media** > **Upload Permissions**
 * Here’s how it’d look like: [https://github.com/WPRanger/wp-upload-permissions/blob/master/screenshot.1.png](https://github.com/WPRanger/wp-upload-permissions/blob/master/screenshot.1.png)
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528909)
 * Look in your Dashboard. Media Menu. Menu Item: Upload Permissions.
 *  Thread Starter [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528910)
 * Found it, thanks. So, all folders show write and read permissions with ticks.
   The only slightly odd thing is that Januarys and Decembers folders have a permissions
   code of 744, all of the others (that work) are 755. Should I change these?
 *  [Dave Naylor](https://wordpress.org/support/users/wpranger/)
 * (@wpranger)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528911)
 * Short answer, yes.
 *  Thread Starter [magicmat](https://wordpress.org/support/users/magicmat/)
 * (@magicmat)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/#post-4528912)
 * Hmm, tried that, but nothing…do I need to give it any time?

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/image-viewing-permissions/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/image-viewing-permissions/page/2/?output_format=md)

The topic ‘Image Viewing Permissions’ is closed to new replies.

## Tags

 * [display](https://wordpress.org/support/topic-tag/display/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 27 replies
 * 4 participants
 * Last reply from: [magicmat](https://wordpress.org/support/users/magicmat/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/image-viewing-permissions/page/2/#post-4528930)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
