Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Web Development Languages (http://www.programmingforums.org/forum40.html)
-   -   Modifying HTTP REFERER? (http://www.programmingforums.org/showthread.php?t=8714)

Godmode Mar 4th, 2006 5:09 PM

Modifying HTTP REFERER?
 
How can I edit HTTP_REFERER information? Then every site should see my defined address there, when called for example by PHP. Is this possible?

DaWei Mar 4th, 2006 6:41 PM

Documentation is your friend, faster than a speeding bullet.
Quote:

Originally Posted by PHP Manual
'HTTP_REFERER'
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.


Godmode Mar 5th, 2006 4:12 AM

Your comment is not helping me at all.

Arevos Mar 5th, 2006 4:57 AM

The HTTP Referer is set by the HTTP client, usually the web browser, when it accesses a site. If you want to access a site from PHP, you can use CURL. CURL has an option which allows you to set the HTTP Referer:
:

curl_setopt($ch, CURLOPT_REFERER, "yourreferurl")
I'm not sure if that is what you are asking, because you have been very vague in your question.

Godmode Mar 6th, 2006 3:01 AM

I solved the problem finally myself, took only a week. The answer was program called Proxomitron. (This q should be maybe in 'the lounge' area. Sry this thread but I was desperate :o)


All times are GMT -5. The time now is 6:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC