Jump to content

Page requests from parsed php pages


grantp22

Recommended Posts

I have script on my web hosts server built into pages that will be offered to the public, eg: index.php will have some script amongst the html, this script calls other webpages on the net eg: wiki.org

 

Now my question is, when that script runs when somebody accesses that page, will the website eg: wiki.org record the users browser info and ip who called my index page or will it record the webhosts server details as the one making the requests?

 

 

Link to comment
Share on other sites

Hi MrAdam or anybody else who can help,

 

I am basicly scanning table data on another website, it is working perfectly using simple_html_dom as seen in the simplified example below!

 

include('simple_html_dom.php');
//
$startpoint=1;//this allows you to pick the td to start at
$endpoint=20;//this allows you to pick the td to end at
//
$i=1;
$mycount=1;
//
$html = file_get_html('http://www.somewebsite.com/tabledata);
foreach($html->find('tr') as $tr) {
  if($i >= $startpoint && $i <= $endpoint){
    foreach($tr->find('td.datacell') as $td){
      $val1 = 'val1_' . ($i-$startpoint);
      $val2 = 'val2_' . $mycount;
      $myarray[$val1][$val2] = $td->innertext;
      if($mycount==10){
        $mycount=1;
      }else{
        $mycount++;
      }
    }
  }
  $i++;
}
//
$newcount = newcount($myarray);
//
$i = 1;
//Add table rows and cells
while($i <= $count) {
echo '<tr>';
echo '<td>'.$myarray['val1_'.$i]['val2_1'].'</td>';
echo '<td>'.$myarray['val1_'.$i]['val2_2'].'</td>';
echo '<td>'.$myarray['val1_'.$i]['val2_3'].'</td>';
echo '</tr>';
}

 

Now I need an example of how to change my code using curl to hide my server details and make it appear as though the request is being made from the users machine or some other random details.

 

I knew that curl was the answer, and I have never used it before, and also it's just there is not much info about using these functions to do this. Can anybody tell me how to do this or at least point me to a tutorial of some kind

 

Thanks

Link to comment
Share on other sites

Now I need an example of how to change my code using curl to hide my server details and make it appear as though the request is being made from the users machine or some other random details.

Why exactly do you want to hide your server's details?

 

 

I knew that curl was the answer, and I have never used it before, and also it's just there is not much info about using these functions to do this. Can anybody tell me how to do this or at least point me to a tutorial of some kind

There's plenty of information about each function - with examples - in the manual. Although you're not going to be able to spoof the IP address with cURL..

Link to comment
Share on other sites

That's not really spoofing your IP though, and you still have the same kind of problems using a proxy. There's security risks if that's what your original worry was over revealing your IP, or if it's just to keep yourself anonymous from the server for whatever reason the proxy you use has your IP address.

Link to comment
Share on other sites

I know, but who is really going to go to each proxy service and request your ip, if they even give it out in the first place, because they guarentee anonymity.

 

Lets just say this makes it more difficult for anyone wanting to know where the page requests are coming from.

 

My reason for this is to remain anonymous, no malicious intents!

 

Thanks for pointer

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.