Jump to content

Recommended Posts

If you want the URL to show one thing and the page to show another, use a frame.  If you want a button or link to send you to another page without showing the URL, use Javascript window.location = "" inside an onClick attribute.

 

If you mean anything else, please explain.

Really wouldn't suggest it, but you would have to scrape the page to see if it's a redirection page then use DOMDocument & XPath to get the URL, then do the same for that URL (looped of course), and if that's a redirection page, it scrapes the next, which in this case would be the destination.

 

Like I said, it's really not a good way to go about it, but I'm not sure if there's a better way.

if the browser visits a URL, it must have a URL to visit. if given a URL, the browser will remember it. pretty straightforward.

 

you might use curl to retrieve url's B and C as if PHP is a browser then header() the browser to D, but any half-brained website knows that trick and won't count it as a visit from the browser, if that's your (somewhat nefarious?) goal.

 

Thanks again for responses, everyone.  Your support has been wonderful.

 

Regarding purpose, no, the are not nefarious of any sort.  This methodology is rather for circumvention protection, not to mask any illicit activities.  Thanks for asking though :)

 

 

KIRA-

Regarding your solution, I have heard of this before but vaguely.  I can surely make it run in an optimized/load-balanced fashion, however, would you mind further explaining

    -  How to scrape / use DOMDocument & XPath in order to determine whether or not a page is a redirect page or a non-redirect-page.

 

 

Thanks so much again,

Joshua

 

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.