Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 4th, 2006, 5:09 PM   #1
Godmode
Newbie
 
Join Date: Jun 2005
Posts: 13
Rep Power: 0 Godmode is on a distinguished road
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?
Godmode is offline   Reply With Quote
Old Mar 4th, 2006, 6:41 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Mar 5th, 2006, 4:12 AM   #3
Godmode
Newbie
 
Join Date: Jun 2005
Posts: 13
Rep Power: 0 Godmode is on a distinguished road
Your comment is not helping me at all.
Godmode is offline   Reply With Quote
Old Mar 5th, 2006, 4:57 AM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
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.
Arevos is offline   Reply With Quote
Old Mar 6th, 2006, 3:01 AM   #5
Godmode
Newbie
 
Join Date: Jun 2005
Posts: 13
Rep Power: 0 Godmode is on a distinguished road
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)
Godmode is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:14 AM.

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