| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|block hack attempts via htaccess?|
| 1:09 pm on Feb 6, 2008 (gmt 0)|
I get a ton of hack attempts on my amember system using the following and similar urls:
Wondering if there's a way to deny site wide access to any url requesting
test.txt using .htaccess
[edited by: jdMorgan at 2:14 pm (utc) on Feb. 6, 2008]
[edit reason] example.com [/edit]
| 3:10 pm on Feb 6, 2008 (gmt 0)|
some recent and similar threads:
Many thanks to Jim.
| 3:55 pm on Feb 6, 2008 (gmt 0)|
A good solution is modsecurity.
It will stop this and attacks you don't already know about.
Easily installs / integrates with apache. Needs a bit of dry run testing at first but once installed you just leave it turn away the bad guys at the door.
| 4:26 am on Feb 7, 2008 (gmt 0)|
Thanks. Installed modsecurity.
Any suggestion on a config for blocking the above?
| 11:10 am on Feb 7, 2008 (gmt 0)|
Modsecurity blocks it from doing what it is trying to do.
Mod security is telling you an exploit attempt was detected and it issued a 500 / 40x error (not that the transmitting end would recognise it as they are fire and forget).
To block it totally from accessing your server you need to deny the ip address but you do not know that before hand as different proxies / compromised devices are being used everytime.
| 12:55 pm on Feb 7, 2008 (gmt 0)|
Its still showing up in my joomla logs, so its not being blocked.
Maybe its related, but I had to turn off SecFilterCheckURLEncoding directive because some of my legit urls use odd characters.
| 2:18 pm on Feb 7, 2008 (gmt 0)|
Out of the box modsecurity is probably set to log mode only. This is where it will record actions in the modsec log file but not actually block.
Look at the modsecurity_crs_10_config.conf file and set
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved