-
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
-
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.
-
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
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- Anhänge hochladen: Nein
- Beiträge bearbeiten: Nein
Foren-Regeln
Lesezeichen