How to disable PHProxy site?

Discussion in 'PHP' started by Daniel591992, Apr 10, 2009.

  1. #1
    Hey, I release designs for PHProxy, but it appears that people have been using my live preview as a proxy. How can I disable the preview so that it cant actually be used as a proxy?

    (I've already tried disabling the form but people have gotten around that.

    Here's the index.php code:
    http://pastebin.com/m3fb886ba
     
    Daniel591992, Apr 10, 2009 IP
  2. fear

    fear Banned

    Messages:
    3,750
    Likes Received:
    221
    Best Answers:
    0
    Trophy Points:
    205
    #2
    Easy one, check out your index.inc.php, remember it is index.inc.php not index.php.
    And simply remove this line
    <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
    And you are done!!!
     
    fear, Apr 15, 2009 IP
  3. Daniel591992

    Daniel591992 Well-Known Member

    Messages:
    594
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    125
    #3
    I did that, but people have been able to use the proxy without it. It appears that some site is using my site as their proxy. I think that the form is not that important. For example, if I can build a form to search Google they can build a form to use my site. Hopefully that makes sense. :eek:
     
    Daniel591992, Apr 15, 2009 IP
  4. Sour

    Sour Peon

    Messages:
    384
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try deleting index.php. I think that's what I used to do, but I don't completely remember as it's been so long.

    Index.php is the heart of the script and without it you should be left with just the shell (the design, basically).
     
    Sour, Apr 15, 2009 IP
  5. CDZ

    CDZ Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Deleting the index.php file seems to be a good option. Hopefully it will help you. Just try it like this.
     
    CDZ, Apr 16, 2009 IP
  6. Daniel591992

    Daniel591992 Well-Known Member

    Messages:
    594
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    125
    #6
    I'm gonna try saving the page as an HTML file and just uploading that. Maybe it will work.
     
    Daniel591992, Apr 16, 2009 IP