~ and acount name in URL
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: ~ and acount name in URL
~ and acount name in URL
21-09-2010 11:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
00:00:05 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=1
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=4
00:00:03 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=4
and visited ccgi.37club.co.uk/~martek/php-bin/37club/index.php
00:00:10 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=4
and visited
00:00:07 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=4
and visited
please note that /~martek my account name is now included in the URL, my scripts do NOT call links in this way.
I have looked for info about his on google and found that Drupal uses this in URLs but it can NOT be that as my scripts are hand-written and run as pure PHP.
The tracking breaks after the URL with ~ in it. I am not sure why as the tracking script should log all hits to ccgi.37club.co.uk.
Any advice would be helpful.
Re: ~ and acount name in URL
21-09-2010 12:30 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: ~ and acount name in URL
21-09-2010 12:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: ~ and acount name in URL
21-09-2010 4:30 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The solution on ccgi is to change any occurrence of either of those variables to $_SERVER['SCRIPT_URL'] which does not contain the /~username text.
Re: ~ and acount name in URL
21-09-2010 4:33 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: ~ and acount name in URL
21-09-2010 9:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt The occurrence of /~username in some file paths is associated with the suEXEC security module used on new ccgi. Unfortunately some environment variables, in particular $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] include /~username. Hence any URL built up from those environment variables will contain that text.
The solution on ccgi is to change any occurrence of either of those variables to $_SERVER['SCRIPT_URL'] which does not contain the /~username text.
I am not using any of the $_server variables listed above, I have scanned my code and all I can find is a single $_SERVER['REQUEST_URI'], so am I to take it that any reference to a $_server['whatever'] is likely to randomly put ~username in the URL.
Re: ~ and acount name in URL
21-09-2010 10:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've tried two environment-dumps, one in bash and one in perl.
SCRIPT_FILENAME=/files/home3/bungalow0/test.cgi
REQUEST_URI=/test.cgi
SCRIPT_NAME=/~bungalow0/test.cgi
SCRIPT_URI=http://ccgi.boristheengineer.co.uk/test.cgi
HTTP_CONNECTION=Keep-Alive
REMOTE_PORT=1216
PATH=/usr/local/bin:/usr/bin:/bin
SCRIPT_URL=/test.cgi
PWD=/share/storage/01/bu/bungalow0
Re: ~ and acount name in URL
22-09-2010 12:31 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This visitor first arrived from www.google.co.uk 37 club puriton 1-10
and visited www.37club.co.uk/
00:00:04 later, arrived from www.37club.co.uk/
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=7
00:00:13 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=7
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=5
00:00:25 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=5
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=7
00:00:03 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=7
and visited ccgi.37club.co.uk/~martek/php-bin/37club/index.php
00:00:34 later, arrived from ccgi.37club.co.uk/~martek/php-bin/37club/index.php
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=7
00:00:04 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=7
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=8
00:01:00 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=8
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=4
00:00:06 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=4
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=5
00:02:54 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=5
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=13
00:00:28 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=13
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=6
00:00:28 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=6
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=7
00:00:41 later, arrived from ccgi.37club.co.uk/php-bin/37club/index.php?s=7
and visited ccgi.37club.co.uk/php-bin/37club/index.php?s=8
As you can see its not happening every time even when the same pages are viewed, the pages are not dynamic so I would have thought they would always appear the same.
Re: ~ and acount name in URL
22-09-2010 9:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
B.
Re: ~ and acount name in URL
22-09-2010 9:56 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Edit: doesn't look to be a widespread issue. @Marteknet you're using the $SCRIPT_NAME variable in a form on that page.
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Re: ~ and acount name in URL
22-09-2010 11:16 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Bob Problem 63612 raised or investigation although I'm unable to provide any timescales for resolution at present...
Edit: doesn't look to be a widespread issue. @Marteknet you're using the $SCRIPT_NAME variable in a form on that page.
Yes Thanks Bob, Sorry I don't know how I missed that one. I have now changed it so I hope things will settle down now, I am still curious why having $SCRIPT_NAME in the script didn't cause the ~ to appear every time the script was called.
Bob not related to this issue please read http://community.plus.net/forum/index.php/topic,84740.msg741300.html#msg741300
Regards Peter.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: ~ and acount name in URL