Proxy Website strange problem

Discussion in 'Site & Server Administration' started by feroz97, Apr 17, 2007.

  1. #1
    Hello ,

    I am testing a PHP proxy script and the script seems to work fine , but there seems to be a problem with the site.

    If I visit the site by typing http://www.proxysite.com and surf the script works fine , but if I type http://proxysite.com and surf I end up with the error:

    URL Error (22): An error has occured while trying to browse through the proxy.
    Failed to connect to the specified host. Possible problems are that the server was not found, the connection timed out, or the connection refused by the host. Try connecting again and check if the address is correct.

    I have no idea what could cause this problem.
     
    feroz97, Apr 17, 2007 IP
  2. Agent_Smith

    Agent_Smith Well-Known Member

    Messages:
    890
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    145
    #2
    I cant get on it on either URL.
     
    Agent_Smith, Apr 17, 2007 IP
  3. luckyme

    luckyme Peon

    Messages:
    219
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I cant get on it on either URL.i think something with DNS
     
    luckyme, Apr 17, 2007 IP
  4. feroz97

    feroz97 Well-Known Member

    Messages:
    493
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #4
    feroz97, Apr 17, 2007 IP
  5. Agent_Smith

    Agent_Smith Well-Known Member

    Messages:
    890
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    145
    #5
    Some hosts don't offer no www. access.
     
    Agent_Smith, Apr 17, 2007 IP
  6. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Why don't you redirect http to www ?

    put this in your .htaccess :

    
    RewriteEngine On
    
    ## Custom Direct all to www
    RewriteCond %{HTTP_HOST} ^privacysurfer\.com$ [NC]
    RewriteRule ^(.*)$ http://www.privacysurfer.com/$1 [R=301,L]
    
    Code (markup):
     
    agnivo007, Apr 17, 2007 IP
  7. feroz97

    feroz97 Well-Known Member

    Messages:
    493
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #7
    The problem is fixed , I just added back the surfing options and it worked.
    Thanks for the help!
     
    feroz97, Apr 18, 2007 IP
  8. delusion

    delusion Guest

    Messages:
    1,195
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If you want to hide your options, you can use <div> layers to do so!
     
    delusion, Apr 18, 2007 IP
  9. delusion

    delusion Guest

    Messages:
    1,195
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you want to hide your options, you can use <div> layers to do so and it'll still make your proxy work as normal.
    ie. meaning the options will still be in the php source, just can't see/view it in the browser
     
    delusion, Apr 18, 2007 IP
  10. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I guess you can also use <input type="hidden" tags also...
     
    agnivo007, Apr 18, 2007 IP
  11. feroz97

    feroz97 Well-Known Member

    Messages:
    493
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #11
    I will try test both the methods , thanks again !
     
    feroz97, Apr 18, 2007 IP
  12. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #12
    That was really really funny :D made my day (should I rep them for trying?)

    Oh, and you can remove the options from phproxy safely.
    check my site: http://adirects.com/proxy works fine
     
    bobby9101, Apr 18, 2007 IP
  13. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #13
    by freezing flags or using hidden fields?
     
    agnivo007, Apr 18, 2007 IP
  14. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Well I have frozen flags, but also I just remove the opions sometimes.
     
    bobby9101, Apr 19, 2007 IP
  15. karan265

    karan265 Active Member

    Messages:
    1,691
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    90
    #15
    <div style="display: none">
    options thingy goes here.
    </div>

    I use this on my proxies to hide out the options. :)
     
    karan265, Apr 19, 2007 IP
  16. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I'm aware of the style="display: none" or style="visibility: hidden" tags...

    Any other way by which bobby9101 does it?
     
    agnivo007, Apr 19, 2007 IP