PHPNerd3 Posted January 27, 2011 Share Posted January 27, 2011 Hello Everyone, I wanted to check in with this amazing community and see if anyone knows how to fully hide all URLs (phases) in a redirection sequence. Basically, I do not want anything in between a click and a land to be visible. Thanks, Josh Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/ Share on other sites More sharing options...
Maq Posted January 27, 2011 Share Posted January 27, 2011 It sounds like you want to use something like mod_rewrite but I'm really not sure what 'between a click and a land' means. Could you provide an example? Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166209 Share on other sites More sharing options...
codefossa Posted January 27, 2011 Share Posted January 27, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166212 Share on other sites More sharing options...
PHPNerd3 Posted January 27, 2011 Author Share Posted January 27, 2011 Thanks for getting back. Here's an example: 1) User clicks , posted on a website somewhere. 2) redirection would look like this: -> ->-> 3) User finally lands on Goal : Make any redirection sniffing in HTTPWATCH/FIREBUG, etc look like this: -> , hiding all 'inner redirection' (B & C in this example) Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166213 Share on other sites More sharing options...
codefossa Posted January 27, 2011 Share Posted January 27, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166215 Share on other sites More sharing options...
BlueSkyIS Posted January 27, 2011 Share Posted January 27, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166223 Share on other sites More sharing options...
PHPNerd3 Posted January 27, 2011 Author Share Posted January 27, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166260 Share on other sites More sharing options...
PHPNerd3 Posted January 28, 2011 Author Share Posted January 28, 2011 Good Afternoon Everyone, Can anyone elaborate on: - 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! Quote Link to comment https://forums.phpfreaks.com/topic/225887-how-to-hide-redirect-urls-from-click-land/#findComment-1166693 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.