PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
'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.
how can any 1 modify the HTTP_REFERER ???
beacuse i want to check using this if the use is relly runing the php from my domain or not!
how can i check it?
thnaks in advance
peleg
I've seen a real jump in referrer spam in the last six months. Makes logging the referrer completely useless. Worse even my customers have noticed too. Damn spyware.
If you want to track the user's movement on your site try setting a $_SESSION['last_page'] = $_SERVER['REQUEST_URI'] on every page. Should be at the end of the script.
that want mu Aim
read at the begining of the POST the aim of my question
i dont want to follow where the users go but to check if the page they access they access it when they are in the broswer and unde my domain
for exampl i put om mydesktop an html file with an i frame
that its src="http://www.mysitecool.com/page1.php"
when i run it i recive :
"mysitecool"
if i open a browser and put the url : http://www.mysitecool.com/page1.php
again i will recive again : "mysitecool"!!!!
the point is when i run it from the desktop i want to see that u acced the page
from the browser by writing http://www.mysitecool.com/page1.php
and not by running it from a local page on the desktop!
any idea?
As our mate Buddha443556 wrote:If you want to track the user's movement on your site try setting a $_SESSION['last_page'] = $_SERVER['REQUEST_URI'] on every page. Should be at the end of the script.
I think you can use sessions to solve your problem.