Connect with Facebook Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-2008, 12:59 PM
Newbie
 
Join Date: Dec 2008
Posts: 7
Rep Power: 0
eurusd is an unknown quantity at this point
Default http referer and header location problem

On site site1.com and many others people use ip showing gif
<img src=site2.com/yourip.gif>

I want to redirect from site2.com to site3.com
PHP Code:
Header("Location: site3.com/newip.php"); 
But how to change or blank $REFERER, so site3.com sees as referrer site2.com or blank?
Any Ideas? Is there any trick to that?

Last edited by Jaan; 12-19-2008 at 03:53 PM.. Reason: Please use code tags when you're posting your codes!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-19-2008, 03:54 PM
Jaan's Avatar   
Moderator
 
Join Date: Dec 2006
Location: Estonia
Age: 18
Posts: 1,518
Blog Entries: 4
Rep Power: 24
Jaan is just really niceJaan is just really niceJaan is just really niceJaan is just really niceJaan is just really nice
Send a message via MSN to Jaan
Default Re: http referer and header location problem

PHP Code:
unset($_SERVER['HTTP_REFERER']); 
I don't know if it works but you can try it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-19-2008, 03:55 PM
Newbie
 
Join Date: Dec 2008
Posts: 7
Rep Power: 0
eurusd is an unknown quantity at this point
Default Re: http referer and header location problem

hmm, did you try it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-19-2008, 03:57 PM
Newbie
 
Join Date: Dec 2008
Posts: 7
Rep Power: 0
eurusd is an unknown quantity at this point
Default Re: http referer and header location problem

nope does not work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-20-2008, 07:14 PM
orjan's Avatar   
Guru
 
Join Date: Sep 2007
Location: Sunne, Värmland, Sweden
Age: 34
Posts: 1,303
Blog Entries: 7
Rep Power: 18
orjan is just really niceorjan is just really niceorjan is just really niceorjan is just really nice
Send a message via MSN to orjan Send a message via Skype™ to orjan
Default Re: http referer and header location problem

I think that the referrer is sent by the browser to the server in the request
something like:
Code:
GET /index.php
REFERRER dom2.com/index.php
The server itself would never know on which page the browser just left.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:13 PM.

Freelance Jobs

XML/XSL: Need code for Book with Chapers using XML
Create an XML file for a book of your creation, and a basic CSS file that will format it to display ...
Earn: $40.00


C++/C: Simple firework cue sequencer
What I require is a rework of a simple cue sequencer. I have a piece of hardware (an Arduino boar...
Earn: $50.00


HTML/XHTML: Menu Rework - ASCIIBin
I'm placing this in the HTML/XHTML section of the Freelance site but you are not limited to HTML. Wh...
Earn: $20.00



CodeCall Goal

Goal #1: 1,000 Blogs
Goal #2: 1,000 Wiki Pages
Goal #3: 300,000 Posts
Goal #4: 20,000 Threads
Done: 30%, 23%, 55%, 75%

Ads