Announcement

Collapse
No announcement yet.

SetEnvif

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SetEnvif

    I was wondering if this is a secure way of protecting my admin-areas:

    in the httpd.conf-file I set this variable:

    SetEnvIf "my-ip-address" MY_VARIABLE

    And then on my adminpages I include:

    if(!$MY_VARIABLE){exit;}

    Is this a secure method, or is it easily hacked?
    Dutch community site for single parents.

    http://www.ouderalleen.nl/thuis.html

  • #2
    Took out a small bug, it should be:

    SetEnvIf "^my-ip-address$" MY_VARIABLE
    Dutch community site for single parents.

    http://www.ouderalleen.nl/thuis.html

    Comment


    • #3
      you could password protect the directorys, and aswell change the location of the admin directorys granted your using vbulletin 3(assumes this is a vbulletin admin area question)

      Comment


      • #4
        It's supposed to be a method to protect all adminpages serverwide.

        had to change it again because of another bug. Now it's like this:

        httpd.conf:

        SetEnvIf "my-ip-address" MY_VARIABLE

        and:

        if(!getenv('MY_VARIABLE')){exit;}

        Does anyone know how to hack this?
        Last edited by bart; Sun 7 Sep '03, 2:10pm.
        Dutch community site for single parents.

        http://www.ouderalleen.nl/thuis.html

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X