LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Robots looking for phpmyadmin (https://www.linuxquestions.org/questions/linux-security-4/robots-looking-for-phpmyadmin-845389/)

VipX1 11-19-2010 04:00 PM

Robots looking for phpmyadmin
 
My phpmyadmin worked yesterday, today it doesn't.
In my logs for Apache I have lots and lots of failed attempts for incorrect incarnations of http: //my.domain.com/phpmyadmin. None of them are anywhere near my alias for the index.php but yet phpmyadmin is broken.

Is there away I can mess up robots like this. Send IP's that create multiple wrong page requests on my server back to their own IP address maybe? I would then just set thresholds to decide how strict to be.

I did try fail-to-ban before but it is cryptic. I don't have it on this particular server.

Noway2 11-20-2010 05:15 AM

At first I thought this was a duplicate of your other post.

Dealing with scan robots is like pulling weeds in the garden. It doesn't matter what you do, they just keep coming back. I understand the frustration you feel, but retaliation is more likely to cause you problems as they will probably complain about you and your ISP will take action.

Fail2ban, which you referenced in your other thread is a good way to go. If you find that you have a particular IP that is doing this, you can block them (or their ISP), but this can have side effects and like the weeds, they will come up somewhere else.

I use Ossec (and snort), which will temporarily block your IP if you try to access too many invalid web pages (about 3). It looks at the apache error log and takes action accordingly.

You might also look at rate limiting in ip tables which will prevent them from trying to establish too many connections in too short a time, but again, this may interfere with your desired operation.

barriehie 11-20-2010 10:49 AM

Have you considered using a robots.txt file?

Code:

User-agent: *
Disallow: /



All times are GMT -5. The time now is 10:07 AM.