Forbidden/403's

Discussion in 'Web Design and Development' started by Dagless, Feb 16, 2010.

  1. macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #1
    In the past few weeks my site first started going slow, downloads peaked at 25kbps no matter the users connection. Then large (10mb+) downloads automatically displayed a "forbidden" error message. Images went after a few days, reloading a page would load up 1-2 more images and then stop.
    But in the last week CSS no longer loads up so my site is now just text.
    At first I thought it was just a permission error but I looked over them and they're fine.

    I've contacted my hosts and they said they'd look into it, but that it might require switching server which would result in 24 hours of downtime. I last heard from them 9 days ago and I've sent lots of emails in the meantime. I've got an unlimited bandwidth account with them and downloads never surpass 1gb a day anyways so I'm not going over any secret limit, and they acknowledge that.

    Round about the same time as this I had a sudden increase in traffic, one of my free games was linked on some Chinese blog and the number of daily downloads went from ~100 to 30,000. I thought this might cause problems so I temporarily removed the file from my own site and changed the link to point at the CNET download page. So it can't be that causing the problem any more, or can it? This was a roughly a month ago.

    Try it out here, that's a minisite for some photos I took so it's fairly image heavy. Or it used to be :eek:.
    But I bought another domain off them for a little company I started up which shares the same account and plan as my main site and that's running just perfectly.

    Any help would be so extremely appreciated. I mean what could cause this error and are there any things I could check on my end (I'm not great with FTP and sites and such)?
     
  2. macrumors 6502a

    Joined:
    Oct 21, 2009
    Location:
    Among the starlings
    #2
    Have you checked file permissions? If they're OK, it's probably an issue with the server. One that the host should fix even without moving you, but that moving might at least resolve quickly, while it could take a while for them to track down the real problem.
     
  3. macrumors 6502

    Joined:
    May 11, 2007
    Location:
    Oshkosh, WI
    #3
    Sounds like a hosting issue imo. Have you read the fine print about the "unlimited" items on your account.

    I would agree with the above poster that switching servers may be a good options at this point.
     
  4. thread starter macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #4
    They said they would inform people who use a lot of bandwidth, and I've had more daily bandwidth in the past. One of the first questions I asked was about the bandwidth but they said I was well within limits, since it was my first concern too.

    Is there any method to change all the permissions, some kind of command line somewhere? I've done it individually with some files with no real luck.
     
  5. macrumors 6502

    Joined:
    Mar 8, 2009
    Location:
    Denver, CO
    #5
    Have you or the hosting company looked at the error log? That might have some info.

    I tried your link and get a 403 Forbidden.
     
  6. thread starter macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #6
    Just had a scan through the latest error messages, nothing out of the ordinary there.

    Code:
    [16/Feb/2010:22:17:43 +0000] 67.195.111.164 - - "GET /dovestones3/Pages/98.html HTTP/1.0" 403 223 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)"
    etc.
    Could someone have snook in there and placed some scripts that could mess it up? I really don't know too much about this kind of thing after all. :eek:
     
  7. macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #7
    What type of system are you running? a blog?
     
  8. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #8
    It's possible someone compromised your host. How are you checking permissions on files? If there is something malicious going on, one place to look is any .htaccess files anywhere in your web site. It's a hidden file so you'll need a S/FTP browser that supports viewing them (I like Cyberduck) or if you're SSH'd in you'll need the -a argument to view hidden files. If your web host supports cronjobs you can see if anything got added in there that you didn't put there.

    As for a command to change permissions:
    Code:
    find . -type d -exec chmod 755 {} \;
    find . -type f -exec chmod 644 {} \;
    You'll need to SSH into your account (or use an app that lets you send commands to the host) and cd into your directory root folder (same folder that your home page is at) and then execute those commands. The first one applies the 755 permissions recursively to all files. The second applies 644 to all directories.
     
  9. thread starter macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #9
    Portfolio, devblog, site for my old freeware games and storage for my newer commercial ones. Some pages are HTML, some are PHP (Wordpress, gallery etc).

    All my subdomains and webmail are still working perfectly.
     
  10. thread starter macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #10
    Thanks for the commands, still getting forbidden errors though. I found a htaccess file but it was empty. Is there a command to search and delete any htaccess files, there are literally hundreds of subfolders on my hosting.
     
  11. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #11
    Run this from inside that same directory root folder.
    Code:
    find . -name '.htaccess' -delete
     
  12. thread starter macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #12
    Cheers, just tried that. Also tried changing it to other variation on htaccess that appeared on my site.
    It's still giving me errors though. I guess from here on it's down to the hosting company?
     
  13. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #13
  14. thread starter macrumors Core

    Dagless

    Joined:
    Jan 18, 2005
    Location:
    Darkplace Hospital
    #14
    Well it's gone from bad to worse. My root directory is now empty (at least to me, I imagine its still there just with some broken permissions) and I can't add any files/folders to it. Creating a file or folder throws a "Permission denied" error at me. Gah.
    I've tried to contact my hosts again but they're being terribly slow about it. I'd be tempted to move from them but I've already been a customer since 2004.
     

Share This Page