Results 1 to 6 of 6

Thread: register_globals on

  1. #1
    What do I do with this ?
    Join Date
    Jan 2007
    Posts
    58

    Default register_globals on

    Hi. I have a shared basic account , and noticed I had register_globals on , and as that might be a security problem (xss attacks) I wonder if I could have that turned off.
    I tried to disable it trough .htaccess:
    Code:
    php_flag register_globals Off
    and trough a php.ini file
    Code:
    register_globals off
    but neither method worked.
    I am running php5 trough the instructions in the knowledge base.

  2. #2
    Ray
    Ray is offline
    I can't do everything.
    Join Date
    Jun 2004
    Location
    Plymouth, WI
    Posts
    134

    Default

    Hello,

    Unfortunately, with PHP 5, we are unable to provide site/folder specific PHP directives. We are looking into disabling register_globals for PHP 5 at this time.
    Ray Tetzloff


  3. #3
    I love LAMP.
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, United States
    Posts
    201

    Default

    Quote Originally Posted by Ray View Post
    Hello,

    Unfortunately, with PHP 5, we are unable to provide site/folder specific PHP directives. We are looking into disabling register_globals for PHP 5 at this time.
    This issue should now be fixed. I have installed a PHP 5 module called htscanner which will parse the .htaccess files for PHP configuration directives and pass them on to PHP automatically. If it doesn't work for some particular usage case, be sure to let us know.
    Kevin Stange
    Chief Technology Officer
    Steadfast Networks
    http://steadfast.net
    kevin@steadfast.net

  4. #4
    dan
    dan is offline
    Contact Us to Verify Account
    Join Date
    Apr 2007
    Posts
    2

    Default

    Quote Originally Posted by Kevin View Post
    This issue should now be fixed. I have installed a PHP 5 module called htscanner which will parse the .htaccess files for PHP configuration directives and pass them on to PHP automatically. If it doesn't work for some particular usage case, be sure to let us know.
    Thanks, I requested this a while back since I was using a popular wiki script (mediawiki) that needed php 5 to work but became very insecure with register_globals turned on.

  5. #5
    What do I do with this ?
    Join Date
    Jan 2007
    Posts
    58

    Default

    Great news Kevin!Waiting forward to actually test this.

  6. #6
    Contact Us to Verify Account
    Join Date
    Jan 2008
    Posts
    36

    Default

    This will probably be handy to know - the new Drupal 5.6 requires this to be off.

    I tried php_flag register_globals Off in the .htaccess using php4 and it worked as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •