Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: PHProxy With HTTP_REFERER as Root of Dest URL..??

Started 5 months, 2 weeks ago by deviouz
I've been looking for some ways to make a page either redirect or retrieve a Dest URL & spoof/forge the HTTP_REFERER as the Root of the Dest URL.. So say I wanted my page to redirect to "http://stardrifter.org/cgi-bin/ref.cgi" but I want the HTTP_REFERER to be set as the Root of that site so it will be "http://stardrifter.org/" or have my page retrieve "http://stardrifter.org/cgi-bin/...
Site: CodingForums.com- Web coding and development forums. Get help on JavaScript, PHP, CSS, XML, mySQL, ASP, and more!  CodingForums.com- Web coding and development forums. Get help on
JavaScript, PHP, CSS, XML, mySQL, ASP, and more! - site profile
Forum: PHP  PHP - forum profile
Total authors: 2 authors
Total thread posts: 9 posts
Thread activity: no new posts during last week
Domain info for: codingforums.com

Other posts in this thread:

The PHP Guy replied 5 months, 2 weeks ago
How are you retrieving the page? cURL? fopen? fsockopen? There are different solutions for each of them (except fopen, which you have little control over)...

deviouz replied 5 months, 2 weeks ago
well i found this script here http://stackoverflow.com/questions/8...edirect-scr ipt & tried it out with a lil modification.. it seems to work ok for some sites but if the URL it needs to retrieve is long with extra characters in it, it doesnt even get the page. or it the URL is a redirect link like a tinyurl it doesnt work either.. is this the same thing/code as those proxies from ...

The PHP Guy replied 5 months, 2 weeks ago
Quote: Originally Posted by deviouz is this the same thing/code as those proxies from proxy.org use..?? Nope... most proxies cloak all links found on the page. By links I mean any and all URLs like src attributes (of all kinds of HTML elements), href attributes, style sheets, favicons....... In short, they ...

deviouz replied 5 months, 2 weeks ago
well how can I do what i asked in my 1st post then..?? what exactly do I need to do..??

The PHP Guy replied 5 months, 2 weeks ago
Quote: Originally Posted by deviouz well how can I do what i asked in my 1st post then..?? what exactly do I need to do..?? if you're talking about : Quote: Originally Posted by deviouz spoof/forge the HTTP_REFERER as the Root of the Dest URL...

deviouz replied 5 months, 2 weeks ago
yeah but it doesn't quite work exactly as those proxies do from proxy.org though.. like if I did "http://mywebsite.com/curl.php?http://cnet.com" it returns a "301 Moved Permanently" page with the page content of "Moved Permanently The document has moved here." and the word "here" is a link to "http://www.cnet.com/" now if i try the same thing on a proxy from proxy.org it automatically takes...

deviouz replied 5 months, 2 weeks ago
Quote: Originally Posted by The PHP Guy Nope... most proxies cloak all links found on the page. By links I mean any and all URLs like src attributes (of all kinds of HTML elements), href attributes, style sheets, favicons....... In short, they replace all URLs with something like: http://example.com/get-page?897cnv97......

The PHP Guy replied 5 months, 2 weeks ago
That's really complicated... IMO, it's better to use an open source proxy script. Before you think about extraction of URLs, you'll need to come up with a 2-way encryption algorithm that's very secure. After that, you'll make a list of all the places where URLs could be found (src attribute, href attributes, etc.) and make your script cloak them using the encryption algorithm....

 

Top contributing authors

Name
Posts
deviouz
5
user's latest post:
PHProxy With HTTP_REFERER as...
Published (2009-06-25 01:42:00)
Quote: Originally Posted by The PHP Guy Nope... most proxies cloak all links found on the page. By links I mean any and all URLs like src attributes (of all kinds of HTML elements), href attributes, style sheets, favicons....... In short, they replace all URLs with something like: http://example.com/get-page?897cnv97...2478fb6v784236 (something which doesn't make sense to humans) how could I make my Curl PHP page cloak all links found on...
The PHP Guy
4
user's latest post:
PHProxy With HTTP_REFERER as...
Published (2009-06-25 03:12:00)
That's really complicated... IMO, it's better to use an open source proxy script. Before you think about extraction of URLs, you'll need to come up with a 2-way encryption algorithm that's very secure. After that, you'll make a list of all the places where URLs could be found (src attribute, href attributes, etc.) and make your script cloak them using the encryption algorithm....

Related threads on "CodingForums.com- Web coding and development forums. Get help on JavaScript, PHP, CSS, XML, mySQL, ASP, and more!":

Related threads on other sites:

Thread profile page for "PHProxy With HTTP_REFERER as Root of Dest URL..??" on http://www.codingforums.com. This report page is a snippet summary view from a single thread "PHProxy With HTTP_REFERER as Root of Dest URL..??", located on the Message Board at http://www.codingforums.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity