Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
in Q2A Core by
edited by

I'm getting search query spam daily in my Q2A, mostly from chinese IPs, since the end of last month.

I don't understand the purpose of this but the spam doubled my eventlog size.


  • ipaddress    params
  •    query=大奖娱乐PT老虎机开户 Q8201930...start=20
  •    query=大奖老虎机存款优惠 Q82019309....start=0
  •    query=大奖娱乐AG捕鱼游戏送彩金www...start=10
  •    query=大奖娱乐TTG老虎机注册送彩
  •    query=趣拍娱乐HB老虎机开户送礼金...start=30
  •    query=大奖娱乐赢钱技巧 Q82019309.com...start=0
  •    query=大奖捕鱼送38元官网 Q82019309.c...start=30
  •    query=大奖老虎机官方网址 Q82019309....start=10
  •    query=趣拍娱乐GOS老虎机注册送礼
  •    query=永利爆大奖娱乐城 Q82019309.com...start=10
  •    query=大奖AG捕鱼游戏送彩金www.djyl1...start=30
  •    query=大奖老虎机首存优惠 Q82019309....start=50
  •    query=趣拍AG捕鱼游戏注册 www.qpyl18....start=0
  •    query=大奖PT老虎机充送活动www.djyl1...start=30
  •    query=大奖MG老虎机送礼金 Q82019309.comstart=20
  •    query=大奖捕鱼是干什么的啊 Q820193...start=0
  •    query=大奖老虎机注册就送钱 Q820193...start=60
  •    query=大奖娱乐注册送现金 Q82019309....start=0
  •    query=趣拍娱乐PT老虎机首存 www.qpyl...start=10
  •    query=大奖MG老虎机首存活动www.djyl1...start=0
  •    query=大奖娱乐TTG老虎机首存活动ww...start=10
  •    query=永利爆大奖娱乐 Q82019309.com.comstart=0
  •    query=大奖娱乐捕鱼游戏注册www.djyl...start=0
  •    query=大奖娱乐GOS老虎机注册送彩
  •    query=888大奖娱乐官网 Q82019309.com.comstart=0
  •    query=大奖TTG老虎机开户送彩金www.d...start=30
  •    query=大奖注册送4彩金 Q82019309.com.comstart=20
  •    query=大奖娱乐GOS老虎机注册送礼
  •    query=百度一下大奖娱乐 Q82019309.com...start=20
  •    query=大奖游戏送体验金 Q82019309.com...start=10
  •    query=大奖娱乐手机手工存款 Q820193...start=30
  •    query=大奖游戏送体验金 Q82019309.com...start=20
  •    query=大奖娱乐网页登录 Q82019309.com...start=30
  •    query=在线至尊娱乐Q82019309.comstart=0
  •    query=大奖娱乐送体验金 Q82019309.com...start=0
  •    query=大奖HB老虎机充送活动www.djyl1...start=0
  •    query=大奖老虎机是真的吗 Q82019309....start=30
  •    query=大奖GOS老虎机送彩金www.djyl18....start=10
  •    query=大奖PT老虎机开户送彩金 Q8201...start=10
  •    query=大奖PT老虎机送彩金www.djyl18.comstart=0
  •    query=趣拍娱乐HB老虎机送礼金 www.q...start=10
  •    query=大奖MG老虎机注册送礼金 Q8201...start=50
  •    query=大奖娱乐游戏试玩 Q82019309.com...start=0
  •    query=大奖TTG老虎机开户送礼金www.d...start=40
  •    query=大奖注册送58元 Q82019309.com.comstart=20
  •    query=趣拍娱乐AG捕鱼游戏开户送礼...start=0
  •    query=趣拍MG老虎机首存活动 www.qpyl...start=0
  •    query=大奖娱乐线上赌场 Q82019309.com...start=10
  •    query=Novomatic澳门赌场怎么玩Q8201930...start=10
  •    query=趣拍娱乐TTG老虎机 www.qpyl18.comstart=30
  •    query=趣拍娱乐HB老虎机开户送礼金...start=0
  •    query=趣拍娱乐老虎机送彩金 www.qpy...start=0
  •    query=永利爆大奖娱乐城 Q82019309.com...start=20
  •    query=趣拍娱乐老虎机开户送礼金 w...start=30
  •    query=大奖PT老虎机开户www.djyl18.comstart=0

More details

  • The sample above is from today and yesterday.
  • All legitimate search queries removed.
  • All the listed IPs are within the blocked range which was done a few days before.
  • Repeated IPs were also removed. The total was 143.


I tried using my website with a blocked IP via proxy.
Things I can do:
  • View any page
  • Login
  • Make searches
  • Access admin panel
Things I can't do:
  • Post a question, answer, or comment
  • Create a new account
  • Pick best answer
  • Upvote or downvote
Q2A version: 1.7.4

3 Answers

0 votes
are they accessing any pages after this query? I assume all blocked IP will not be able to access any questions or answer. I dont think your site will be showing any output for their search query. If they are able to access any QA then let us know, that is bug in Q2A.

If this kind of attacks are more then it will consume your server resources(RAM, CPU) and slow down server. This will have impact on your real users, they may see site loading slow. Many time hackers are only interested to bring down site, if they are not able to hack.

If you see this kind of issue again and again then I recommend you to use cloudflare.com like services. They know how to protect from DDoS attack. They will take care of such attacks at DNS level, even before it reaches your site.

Let us know how your are able to fix this.
I added the heading "Testing" in the question. Pages are accessible with blocked IPs.
Oh, then let me check this. After IP ban user should not access any pages.
Just checked this, user can access questions from banned IP but can not post anything. I feel we should completely block site for banned IP users.

@Scott, @pupi1985, what do you think?
0 votes

please do not block this will reduce your server your can block on .htacces or on the config files

or fileban     crying

not sure what you would like to say.....IP ban from admin panel is easier.....also blocking entire site will help to reduce server load.
the problme  with cpu he can stop and ban the ip from the sys better
that's what i test
+3 votes
The point of IP bans is to prevent spam/abuse more widely than banning user accounts does.

Simply viewing some pages doesn't really count as "abuse" in my view, however I can see the issue with searches as they can be "resource intensive" if many are made at once.

At the moment your best bet is to block those IPs at the server level. But usually spammers have many IPs and get around bans.