Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: jmanpa - huhtikuu 28, 2008, 12:14:38 IP

Otsikko: Getting hit by bots, help
Kirjoitti: jmanpa - huhtikuu 28, 2008, 12:14:38 IP
I'm getting inundated by programmatic access to my SMF.  How can I block them.  I'm afraid if I do ban IP via SMF admin console I'll get billions of ban log entries.

Getting these from Korea and Japan IPs

[28/Apr/2008:09:11:44 -0700] "GET /index.php?PHPSEStlooml31kqebdljo1imlspi54&action=profile;u=68 HTTP/1.1" 403 298 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET)"
Otsikko: Re: Getting hit by bots, help
Kirjoitti: karlbenson - huhtikuu 28, 2008, 12:25:58 IP
What are the ips?
Otsikko: Re: Getting hit by bots, help
Kirjoitti: jmanpa - huhtikuu 28, 2008, 12:56:15 IP
I've sent them to you via private message
Otsikko: Re: Getting hit by bots, help
Kirjoitti: rsw686 - huhtikuu 29, 2008, 11:24:53 IP
You could block them with a .htaccess file.
Otsikko: Re: Getting hit by bots, help
Kirjoitti: jmanpa - huhtikuu 30, 2008, 12:04:56 AP
It never ends however, IPs are cheap and I'll end up blocking 1/2 the internet.  I've added 12 to htaccess and there's just more new ones the next day....
Otsikko: Re: Getting hit by bots, help
Kirjoitti: Aleksi "Lex" Kilpinen - huhtikuu 30, 2008, 01:07:06 AP
What is the real problem with these.
Are they spamming, creating accounts, just using too much bandwith or what?
Approach to blocking them, depends on what you are trying to solve.
Otsikko: Re: Getting hit by bots, help
Kirjoitti: Nigel - huhtikuu 30, 2008, 06:56:34 AP
Hi Jmanpa,

LainaaIt never ends however, IPs are cheap and I'll end up blocking 1/2 the internet.

Don't know exactly how to do it as I've never tried, but I know it's possible to block a whole range of IP addresses at once with .htaccess. So if all these troublesome bots are using the same block of IPs you could block them all with one line. Try searching on Google.

Nigel
Otsikko: Re: Getting hit by bots, help
Kirjoitti: perplexed - huhtikuu 30, 2008, 07:09:11 AP
you can also block them from your site if you have cpanel - IP deny manager I think it's called - and stop them getting to your forum
Otsikko: Re: Getting hit by bots, help
Kirjoitti: Eliana Tamerin - huhtikuu 30, 2008, 08:51:08 AP
Which is just a GUI interface for editing the .htaccess. ;)
Otsikko: Re: Getting hit by bots, help
Kirjoitti: perplexed - huhtikuu 30, 2008, 09:06:31 AP
yes I know but might be easier for people who don't like editing files :)
Otsikko: Re: Getting hit by bots, help
Kirjoitti: karlbenson - huhtikuu 30, 2008, 11:17:01 AP
I have this section in my .htaccess to block some recent content scrapers

Lainaaorder allow,deny
# Spammers/Scrapers
deny from 89.122.29.125
deny from 89.122.29.128
deny from 89.122.29.77
deny from 89.122.29.127
deny from 89.122.29.105
# Drug Spammers
deny from 158.48.6.140
# bad urls
deny from 64.229.222.62
allow from all