+ Antworten
Ergebnis 1 bis 3 von 3

Thema: Problems with PHPIDS and phpMyAdmin

  1. #1
    Neuer Benutzer
    Registriert seit
    10.08.2009
    Beiträge
    2
    Hi,

    I am very impressed with PHPIDS. It seems its exactly what I searched alot of times.
    But I have a question for wich I cannot find answers in google.
    I installed PHPIDS and it works fine for me with loggin into File, Database and sending email reports.
    But if I call phpMyAdmin on my Host and will browse throught database entries, I get blocked by PHPIDS. Now I am searching for a solution regarding this issue.
    What can I do to use phpMyAdmin furthermore without blocking throught PHPIDS?

    Thank you

    Sincerly

    Daniel

  2. #2
    Benutzer
    Registriert seit
    13.06.2007
    Beiträge
    64
    Hi Cojun, thanks for your question. I assume you are using PHPIDS via auto_prepend_file? Otherwise it wouldn't affect multiple applications on your localhost, I guess. Solution a, which I cannot recommend, is: don't do that.

    I think a better way would be to just write a small condition on top of the file you're including to check if you're currently browsing through phpMyAdmin on your localhost. You can check the URL to do this.

  3. #3
    Neuer Benutzer
    Registriert seit
    10.08.2009
    Beiträge
    2
    Hi,

    thank you for your answer.
    I solved this by adding a regular expression in my auto_prepent_file.

    if ( isset($_SERVER['SCRIPT_FILENAME']) && preg_match("/phpmyadmin/i",$_SERVER['SCRIPT_FILENAME'])) {
    // Do nothing
    }
    else {
    // Check against PHPIDS
    }

    With this, it works fine for me. But I am thinking about rewrite all scripts wich schould be checked against PHPIDS with a include header. So I can make sure, that only that scripts will be checked wich should be checked.

    Thank you for your Help in this case

    Daniel

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein