php based proxy using curl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tpw
    Registered User
    • Jul 2014
    • 4

    #1

    php based proxy using curl

    I am just writing a little script on the back end of my site's server so i can have a private proxy. Since I am banned from stackoverflow figured I would post here and see if anyone could help. Currently I have:
    PHP Code:
    $search = $_POST["sValue"];
    $ch = curl_init();
    
    curl_setopt($ch, CURLOPT_URL, "wwwdot$search/");
    curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
    
    curl_exec($ch);
    curl_close($ch); 
    
    As expected though if you go to google and type something in the search bar it tries to run the search from your domain. IE instead of: wwwdotgoogledotcom/search?ie=ISO-8859-1&hl=en&source=hp&q=google&btnG=Google+Search&gbv= 2&gws_rd=ssl it does: wwwdotthepornwizdotcom/search?ie=ISO-8859-1&hl=en&source=hp&q=google&btnG=Google+Search&gbv= 2

    So atm is pretty retarded as I am in essence just echoing the page out. Althought if everytime I follow a link it just keeps it like wwwdotthepornwiz.com/sub/proxy_search.php?k=thelink I should be able to load everything although without images.
    Last edited by tpw; 08-24-2014, 02:35 PM.
    Website: http://thepornwiz.com
  • brentbacardi
    Confirmed User
    • Nov 2009
    • 1425

    #2
    Use cURL set proxy
    Go Fuck Yourself!

    Comment

    • weewilly
      Confirmed User
      • Jul 2012
      • 190

      #3
      Use Glype. It is a nice proxy script

      Comment

      Working...