John, CC: a copy of your next posts. I'll be back on Friday. Jingle Bells and all. Thanks for thinking about it. What about turning on: session.referer_check = Or soemthing else in php.ini
John John Nichel wrote: > Well, that won't help then. I saw that REMOTE_PORT was different in > your last two emails, but if it's ever changing.... > > I'm doing a little testing here on my end and have discovered that > REFERER isn't set if the server is doing a redirect. I made a simple > little two page script. The first page just contained this (the site > doesn't have DNS outside of my network)... > > header ( "Location: http://www.backup.jcn/referer2.php" ); > > and referer2.php contained... > > print_r ( $_SERVER ); > > When I went through the redirect, REFERER was NOT set, but when I > clicked on a link from another page, it was set. I'll look at it a bit > longer to see if there is anything out there to tell it was redirected, > but it's not looking good. > > John Taylor-Johnston wrote: > >>[SERVER_PORT] => 80 > > > > > > Server port does not change. > > > > Will it do anything to change my php.ini? > > > > session.referer_check = > > > > It is set to nothing at the moment, copied and pasted. > > > > How do I check for the port number? My redirects come through: > > > > > >>[REMOTE_PORT] => 1070 > >>[REMOTE_PORT] => 1074 > > > > > > They are also increasing. It's a bit like a counter :) no? > > > > Even the link to http://compcanlit.usherbrooke.ca makes remote_port increase: > > > > > >>[REMOTE_PORT] => 1079 > > > > > > John > > > > John Nichel wrote: > > > > > >>Like John said, REFERER isn't always set, and that looks to be the case > >>here. One thing I did notice is that the redirect comes thru on a > >>different port. If this is consistant, you may be able to use this. > >> > >>John Taylor-Johnston wrote: > >> > >>>>echo ( "<pre>\n" ); > >>>>print_r ( $_SERVER ); > >>>>echo ( "</pre>\n" ); > >>> > >>> > >>>On the redirect from http://compcanlit.ca/, I get: > >>> > >>>Array > >>>( > >>> [DOCUMENT_ROOT] => /var/www/html2 > >>> [HTTP_ACCEPT] => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, >image/png, */* > >>> [HTTP_ACCEPT_CHARSET] => iso-8859-1,*,utf-8 > >>> [HTTP_ACCEPT_ENCODING] => gzip > >>> [HTTP_ACCEPT_LANGUAGE] => en,fr > >>> [HTTP_CONNECTION] => Keep-Alive > >>> [HTTP_HOST] => compcanlit.usherbrooke.ca > >>> [HTTP_USER_AGENT] => Mozilla/4.79 [en]C-CCK-MCD (Win98; U) > >>> [PATH] => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin > >>> [REDIRECT_STATUS] => 200 > >>> [REDIRECT_URL] => / > >>> [REMOTE_ADDR] => 142.169.108.39 > >>> [REMOTE_PORT] => 1066 > >>> [SCRIPT_FILENAME] => /var/www/html2/index.html > >>> [SERVER_ADDR] => 132.210.13.10 > >>> [SERVER_ADMIN] => root@localhost > >>> [SERVER_NAME] => compcanlit.usherbrooke.ca > >>> [SERVER_PORT] => 80 > >>> [SERVER_SIGNATURE] => > >>>Apache/1.3.27 Server at compcanlit.usherbrooke.ca Port 80 > >>> > >>> > >>> [SERVER_SOFTWARE] => Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 >OpenSSL/0.9.6b DAV/1.0.3 PHP/4.1.2 mod_perl/1.26 > >>> [GATEWAY_INTERFACE] => CGI/1.1 > >>> [SERVER_PROTOCOL] => HTTP/1.0 > >>> [REQUEST_METHOD] => GET > >>> [QUERY_STRING] => > >>> [REQUEST_URI] => / > >>> [SCRIPT_NAME] => /index.html > >>> [PATH_TRANSLATED] => /var/www/html2/index.html > >>> [PHP_SELF] => /index.html > >>> [argv] => Array > >>> ( > >>> ) > >>> > >>> [argc] => 0 > >>> > >>> > >>> > >> > >>-- > >>By-Tor.com > >>It's all about the Rush > >>http://www.by-tor.com > > > > > > -- > > John Taylor-Johnston > > ----------------------------------------------------------------------------- > > "If it's not open-source, it's Murphy's Law." > > > > ' ' ' Collège de Sherbrooke: > > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ > > - Université de Sherbrooke: > > http://compcanlit.ca/ > > 819-569-2064 > > > > > > > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com -- John Taylor-Johnston ----------------------------------------------------------------------------- "If it's not open-source, it's Murphy's Law." ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php