Change proxy URL from /index.php?=

Discussion in 'PHP' started by mg3hockey, Jan 25, 2009.

  1. #1
    Hello all,

    I have made some great progress to the contributors to my post.


    I do have another question.

    I am trying to make a couple proxies with a different named index page.


    Instead of the proxy running off the /index.php page I want to rename the page to something else, anything else. This would prevent firewalls from detecting the typical .php script.

    I tried renaming the index file but it does not seem to work.


    For an example of what I want to look like go to www.blahs.info and test their proxy and you will see that its /news.php?=

    Thanks in advance
     
    mg3hockey, Jan 25, 2009 IP
  2. Dennis M.

    Dennis M. Active Member

    Messages:
    119
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Change the filename then use .htaccess to create a redirect.

    .htaccess (file in your script's root directory)
    DirectoryIndex NEWFILE_NAME.php
    Code (markup):
    Regards,
    Dennis M.
     
    Dennis M., Jan 25, 2009 IP
  3. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Hey Dennis,

    You have really helped build nice proxy.


    I have another question though. If a firewall is able to detect the packets be sent between the proxy server and the firewalled computer and it blocks even what we already have is there a way to get around this or disguise the packet sbeing sent?

    Thanks
     
    mg3hockey, Jan 25, 2009 IP
  4. Dennis M.

    Dennis M. Active Member

    Messages:
    119
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    hmm. Depends. I'm assuming you are using cURL? Have you tried setting the USERAGENT to something like:
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 (.NET CLR 3.5.30729)
    Code (markup):
    That is the latest Firefox for Windows.

    and something like

    curl_setopt(curl_init(), CURLOPT_FOLLOWLOCATION,1);
    PHP:
    or no?

    Regards,
    Dennis M.
     
    Dennis M., Jan 25, 2009 IP
    chandan123 likes this.
  5. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #5
    Hello Dennis,

    I am not really fluent in php coding. That is why your such a great help. I am using cURL, would you mind walking me through the rest...lol...thank you so much.

    Just tell me what files they are found in.
     
    mg3hockey, Jan 25, 2009 IP
  6. mg3hockey

    mg3hockey Active Member

    Messages:
    438
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Hello all,

    I am trying to change a new script I purchased.

    www.collegesatprep.info

    I am trying to change the /browse.php?

    I have tried renaming the directory in the htacess file and renamed the index file. But there is a browse.php and the index.php I have renamed them both and it fails everytime.

    DirectoryIndex news.php- I used this in the htacess file but it failed, I renamed the browse and index file (news.php)

    Also, how do I change the variable "u" in php?u= I have done it before but this script is different.

    Thanks
     
    mg3hockey, Feb 22, 2009 IP