View Single Post
Old 08-24-2014, 03:23 PM  
tpw
Registered User
 
Industry Role:
Join Date: Jul 2014
Posts: 4
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($chCURLOPT_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.
__________________
Website: http://thepornwiz.com

Last edited by tpw; 08-24-2014 at 03:35 PM..
tpw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook