Jump to content
Sign in to follow this  
vituson

Забанить китайских ботов: Mb2345Browser, MicroMessenger, UCBrowser, LieBaoFast, Mobile MQQBrowser, zh-CN; OPPO A33 Build

Recommended Posts

На некоторых сайтах стала встречаться такая китайская бяка, как "мобильные боты", которые грузят хостинг, и их сложно забанить по Ip, т.к. они очень разные. Вот пример логов с такими ботами:

site.ru 183.52.128.4 - - [21/Dec/2019:20:13:32 +0300] "GET /63600.html HTTP/1.1" 403 321 "-" "Mozilla/5.0(Linux;Android 5.1.1;OPPO A33 Build/LMY47V;wv) AppleWebKit/537.36(KHTML,link Gecko) Version/4.0 Chrome/42.0.2311.138 Mobile Safari/537.36 Mb2345Browser/9.0" 2897 0:0
site.ru 117.95.214.241 - - [21/Dec/2019:20:13:34 +0300] "GET /79700.html HTTP/1.1" 403 318 "-" "Mozilla/5.0 (Linux; Android 7.0; FRD-AL00 Build/HUAWEIFRD-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043602 Safari/537.36 MicroMessenger/6.5.16.1120 NetType/WIFI Language/zh_CN" 2982 0:0
site.ru 112.113.155.8 - - [21/Dec/2019:20:13:35 +0300] "GET /93000.html HTTP/1.1" 403 320 "-" "Mozilla/5.0(Linux;U;Android 5.1.1;zh-CN;OPPO A33 Build/LMY47V) AppleWebKit/537.36(KHTML,like Gecko) Version/4.0 Chrome/40.0.2214.89 UCBrowser/11.7.0.953 Mobile Safari/537.36" 1633 0:3333
site.ru 1.70.76.30 - - [21/Dec/2019:20:13:36 +0300] "GET /92900.html HTTP/1.1" 403 323 "-" "Mozilla/5.0(Linux;Android 5.1.1;OPPO A33 Build/LMY47V;wv) AppleWebKit/537.36(KHTML,link Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36 LieBaoFast/4.51.3" 2882 0:0
site.ru 113.64.49.22 - - [21/Dec/2019:20:13:36 +0300] "GET /58400.html HTTP/1.1" 403 321 "-" "Mozilla/5.0(Linux;Android 5.1.1;OPPO A33 Build/LMY47V;wv) AppleWebKit/537.36(KHTML,link Gecko) Version/4.0 Chrome/43.0.2357.121 Mobile Safari/537.36 LieBaoFast/4.51.3" 1850 3333:0
site.ru 61.131.243.117 - - [21/Dec/2019:20:13:36 +0300] "GET /90800.html HTTP/1.1" 403 321 "-" "Mozilla/5.0(Linux;Android 5.1.1;OPPO A33 Build/LMY47V;wv) AppleWebKit/537.36(KHTML,link Gecko) Version/4.0 Chrome/42.0.2311.138 Mobile Safari/537.36 Mb2345Browser/9.0" 1789 3333:0
site.ru 117.92.195.162 - - [21/Dec/2019:20:13:37 +0300] "GET /77100.html HTTP/1.1" 403 327 "-" "Mozilla/5.0 (Linux; Android 7.0; FRD-AL00 Build/HUAWEIFRD-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043602 Safari/537.36 MicroMessenger/6.5.16.1120 NetType/WIFI Language/zh_CN" 1732 0:0

А вот код, который нужно разместить в файле Htaccess, чтобы забанить их навсегда.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} Mb2345Browser|UCBrowser|LieBaoFast|zh-CN\;OPPO.A33|OPPO.A33.Build/LMY47V\;wv|FRD-AL00.Build.HUAWEIFRD-AL00|MicroMessenger|zh_CN\;OPPO.A33|OPPO.A33.Build/LMY47V\;wv|Kinza [NC]
RewriteRule ^ - [F,L]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...