Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Prairiegoat on August 05, 2011, 01:57:57 PM

Title: How to ban IP 119.63.196.*
Post by: Prairiegoat on August 05, 2011, 01:57:57 PM
I have tried everything I know how. I put in 119.*.*.*, 119.63.*.*, 119.63.196.* and I even listed specific IP's from .1 to .100 such as 119.63.196.20 to no avail. It works once in a great while but I constantly have 40 to 50 guests under this IP.


HELP!
Title: Re: How to ban IP 119.63.196.*
Post by: karlbenson on August 05, 2011, 02:05:41 PM
The above is Baidu search engine spider.
http://user-agent-string.info/list-of-ua/bots-ip?ip=119.63.196.20
Title: Re: How to ban IP 119.63.196.*
Post by: Prairiegoat on August 05, 2011, 02:19:11 PM
That is true, but why can I not ban it? Any other IP I ban does just that, why not in this case?
Title: Re: How to ban IP 119.63.196.*
Post by: Ozzie on August 05, 2011, 03:33:02 PM
it appears to be a Baidu search engine but it is a Japanese search engine piggy backing on baidu name my site (along with 1000's of others)have been plagued with them up to 20 or 30 at a time all day

to rid your self of this / in the root of your server find the .htaccess file and add (making sure the RewriteEngine is on) it should be!

order allow,deny
deny from 119.63.196
allow from all


i know there is only 3 places in the ip above but that is correct.it is so it blocks the whole range from them...

i have used this on my site now for over 3 weeks and not seen them the real baidu still calls as it used to...btw the real ip for biadu is 123.125.71.?, (? can or will be any number from 1 to 255 )
Title: Re: How to ban IP 119.63.196.*
Post by: a10 on August 05, 2011, 04:51:59 PM
An entry in the forum ban list won't stop the ip from showing up as 'Viewing the board index of *' in the Who's Online list, but in practice means they were not allowed to see or access anything.

.htaccess is the way to go to keep unwanted ip's completely at bay before even reaching the site.
btw, baidu is a pita, added to my .htaccess long time ago.
Title: Re: How to ban IP 119.63.196.*
Post by: YogiBear on August 05, 2011, 05:23:44 PM
I have successfully banned one of the Baidu range of spiders using the cpanel IP Deny facility if that's of any help.

The spider itself isn't of any harm but can be a pest if bandwidth is a prob.
Title: Re: How to ban IP 119.63.196.*
Post by: karlbenson on August 06, 2011, 06:27:29 AM
if it is baidu then it would respect a robots.txt
if its not then it won't and .htaccess banning is probably best.