Php proxy is killing my gdaddy server - to manny connections

Discussion in 'PHP' started by shiftline, Jan 24, 2008.

  1. #1
    I am seeing the to many connections error constantly due to my phpproxy script. Is there any way to limit the connections to it?
    I have other sites hosted on that server so i dont really like it when they cut out here and there..

    any sugestions?
     
    shiftline, Jan 24, 2008 IP
  2. redvok

    redvok Active Member

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Proxy is not for weak servers. Do you hosted on shared hosting? If yes then move to VPS.
     
    redvok, Jan 24, 2008 IP
  3. shiftline

    shiftline Active Member

    Messages:
    255
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #3
    yes its one of the bigger shared godday plans.
    i also have 1and1 and qoozz would one of those be better suited for it?

    my biggest concern is i don't want it to make any other site unavailable
     
    shiftline, Jan 24, 2008 IP
  4. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well most proxy issues stem from hot linking of images and other files. What you want to do is prevent large files from going through the proxy for one. The next is to make custom modifications to expire out proxy URL's.

    With about 20 minutes of work I was able to almost stop hotlinking entirely (the current system used does not do it that well). The way I did it was started changing the query strings around. So one user see's index.php?dijdi=3298ue298u42983u49824u892489 the next see's index.php?vjxv=sa098di230940923049920340940.

    If someone managed to do multi proxy then hit my proxy it would get by. However this url would expire in 12 hours thus making it really useless. As a result only actual real proxy users made use of the proxy which meant less hits but the strain was way way down.
     
    InFloW, Jan 24, 2008 IP
  5. shiftline

    shiftline Active Member

    Messages:
    255
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #5
    so you think it is hot links? If it changes the links would that hurt you for search engines? I have a crap load of things linked in some how from random searches.

    The problem is yet again trying to get to one of my other sites on that server

    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    Apache/1.3.33 Server at www.visualfunhouse.com Port 80
     
    shiftline, Jan 26, 2008 IP
  6. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The big issue with proxy's is the hotlinking

    You need to ask yourself do you gain anything from a bunch of people not visiting your proxy site and simply getting images through your proxy. The answer is pretty simple there they are costing you money with no return. So google indexing these images or whatever they hot linked through your proxy are sort of useless to you.
     
    InFloW, Jan 26, 2008 IP
  7. anarmyofme

    anarmyofme Well-Known Member

    Messages:
    1,136
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    130
    #7
    anarmyofme, Jan 26, 2008 IP
  8. shiftline

    shiftline Active Member

    Messages:
    255
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Good call, why would people hot linking through a proxy and not just the original source of the image?


    Ill work on making it anti hotlinking tonight :D

    thanks for the advice
     
    shiftline, Jan 27, 2008 IP
  9. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #9
    If the source site blocks , it would block the proxy. The hotlinkers would then move to another proxy. Bad analogy: they are robbing a bank and making it look like you did it.
     
    shallowink, Jan 27, 2008 IP
  10. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Cracked a members only site usually and they want all the images to go through the proxy to avoid any automatic detection closing down the account.
     
    InFloW, Jan 27, 2008 IP
  11. mdbradle

    mdbradle Peon

    Messages:
    242
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Godaddy does NOT allow proxy sites hosted.

    Watch out, they will shut you down soon.

    I'd suggest moving over to one of the many reputable hosts that live here on DP if you are serious.

    Look for DP'er "thewird"...he runs wdservers.com. great stuff at a great price...they are who I use.
     
    mdbradle, Jan 27, 2008 IP
  12. shiftline

    shiftline Active Member

    Messages:
    255
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #12
    I will try to contact him later, if its cheap enough i will.

    I installed the an anti hotlinking script last night, and still this morning i got a few of those capacity/connection errors.
     
    shiftline, Jan 28, 2008 IP
  13. shiftline

    shiftline Active Member

    Messages:
    255
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #13
    Ok i installed a script into phpproxy scrip for anti hotlinking and i also did a second one through the .htaccss file and still seeing the to many connections/capacity error.

    Any other ideas to limit connections?
     
    shiftline, Jan 29, 2008 IP