I've had a moveable type blog up for quite a while on my server that I didn't realize was being harvested for comment spam. I removed the blog but now get TONS of hits to the directories that I've deleted. Is it possible to just ban any ip that attempts to access the following directory: http://www.mywebsite.com/mt/
Yeah, you could setup a mod_rewrite to disallow from any IP address to that directory. shouldn't be too hard to setup (sorry, I don't know the exact setup for it, but Google knows). Here ya go: http://www.javascriptkit.com/howto/htaccess5.shtml
easy. make an index.php page in that directory, get the user ip then shell_exec an iptable rule that drops any packet from that ip.