Graphics forbidden after upload

Hi all,

I have not had this happen before in the sites I manage until just within the last month. I have run into this issue twice now, my site works fine fully tested in several browsers. After upload, the images are “forbidden”.

I used Freeway 4 Pro exclusively for development and upload.

The first instance was a large site, lots of images, that I moved from its own independent account to my personal account where I have several sites added-on. The hosting company remains the same. I uploaded the site from the Fwy document into the new public folder and subfolder, no problems, no errors, but graphics would not display. All html text, links, etc. worked. I went back and forth deleting the public_html folder repeatedly, recreating it, re-uploading, checked the ftp log, constantly forbidden, no change. Finally, I pulled down the site from the old account (I knew IT worked) with a standalone FTP client, then re-uploaded THAT site into a new sub-folder, using the FTP client. The site now worked, and I was finally able to update the site with Freeway, and it still remained functioning. I thought the problem was solved.

I created a new site last night using Freeway 5 Pro, not very big, a few pages and a small handful of images. It tested out perfectly in the browsers, I uploaded it into its own public_html/subfolder, and bang, images gone, “forbidden” from Safari. Same problem, again.

I pulled it down, went through the iterations of deleting the public_html/subfolder repeatedly, re-uploaded, checked permissions, looked at the resources folder, etc. to no avail. I finally built a 1 page, 1 image, 1 line of html text dummy site to work with in the place of the real site to try to hammer out this problem, and I’m stuck!

I built a duplicate dummy site in Freeway 4 Pro to see if it was a version issue (whatever) and the result is the same, no displayed graphics.

I’ve taken the tips from the threads I can find here regarding checking the permissions of the folder and files, and they appear to be correct. I also compare them to my other sites that work, and they are identical for the permissions per the item (file, folder).

(big shrug, head hanging down)

URL for offending site: :wink:

http://www.theclimbingcooneys.com

…help? …Anyone?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 28/3/08 (at 22:28 -0400) SarahE said:

Hi all,

I have not had this happen before in the sites I manage until just
within the last month. I have run into this issue twice now, my
site works fine fully tested in several browsers. After upload, the
images are “forbidden”.

Strange. I looked at your test page and the image is definitely being
uploaded; it is there in the Resources folder on the server. But I
can’t view it even if I go directly to it. Time to contact your web
host.

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, thatKeith,

I did just that, and they provided aid almost immediately. Here was the resolution to my issue:

"the following line in your .htaccess was causing images to give that forbidden error message:

RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

I have removed it for you, but if you need it again you can copy and paste it in your .htaccess file."

Now I need to learn what I did to cause this line to be written, as I know nothing about .htaccess, and have never messed with the file. Google, old-buddy, here I come (again)!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Now I need to learn what I did to cause this line to be written, as I know nothing about .htaccess, and have never messed with the file. Google, old-buddy, here I come (again)!

The .htaccess file is not normally something that needs to be messed with and definitely not something you would do accidentally. Sounds more like something your host pre-setup for you. Is your host is running Windows? Perhaps this htaccess setting is for security to help prevent malicious image files? Just guessing.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Skimming mails here - but did you set anything in Control Panel of Hosting
account to do with image protection?
That’s my (only) suspect.
all the best
Brian

SarahE said recently:

Thanks, thatKeith,

I did just that, and they provided aid almost immediately. Here was the
resolution to my issue:

"the following line in your .htaccess was causing images to give that
forbidden error message:

RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

I have removed it for you, but if you need it again you can copy and paste it
in your .htaccess file."

Now I need to learn what I did to cause this line to be written, as I know
nothing about .htaccess, and have never messed with the file. Google,
old-buddy, here I come (again)!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello Bin-Ra, chuckamuck,

Yes, that’s exactly what I did, as I found out that a number of my images on one site were being hotlinked by blogsites, and such, and I also have artwork images on another site of mine, images I wished to protect somewhat (I’ve also used the “Image Gaurdian” action - neat! ). CPanel provides an “enable hotlinking” function, and I listed all image formats. I had done some reading up on the .htaccess file controlling access (duh) but hadn’t touched it ever. Seems there is more than one way of exerting permissions control… and quite efficiently mess one’s site up! :slight_smile:

I figure, though, that it’s always good to be learning!

Thanks for the support!

sarah


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Sarah
Isn’t it so that we often suffer more from our security measures than from
the initial situation that triggered them!
I guess you’ve found the way to tweak those settings so that your images
cant be hotlinked but can be viewed in your own domain/site.
all the best
Brian

SarahE said recently:

Hello Bin-Ra, chuckamuck,

Yes, that’s exactly what I did, as I found out that a number of my images on
one site were being hotlinked by blogsites, and such, and I also have artwork
images on another site of mine, images I wished to protect somewhat (I’ve also
used the “Image Gaurdian” action - neat! ). CPanel provides an “enable
hotlinking” function, and I listed all image formats. I had done some reading
up on the .htaccess file controlling access (duh) but hadn’t touched it ever.
Seems there is more than one way of exerting permissions control… and
quite efficiently mess one’s site up! :slight_smile:

I figure, though, that it’s always good to be learning!

Thanks for the support!

sarah


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Brian,

Ha! Ain’t it the truth, sometimes!

Nope, I haven’t tried any tweaking, but cpanel tells me that hotlinking protection is still enabled.

In the immortal words of Rosanna RosannaDanna - “It’s always somethin’”!

take care,

sarah


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options