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/...
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)...
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 ...
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 ...
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...
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...
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......
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....
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...
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!":
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