Divi WordPress Theme

Topic: Block unwanted users from your site using .htaccess  (Read 175 times)

Offline Chris

  • New Member
  • *
  • Posts: 33
  • iTrader: +0/-0
    • View Profile
Block unwanted users from your site using .htaccess
« on: May 01, 2019, 11:22:49 AM »
My website is being attacked from different IP addresses. It is fake request but I am seeing common user agent. Is there anyway to block such traffic using .htaccess and user agent?
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 613
  • iTrader: +153/-0
    • View Profile
Re: Block unwanted users from your site using .htaccess
« Reply #1 on: May 01, 2019, 02:15:22 PM »
Yes, it is possible to block the access based on user-agent. You can refer our following KB:

Block unwanted users from your site using .htaccess

In this KB, refer section "Block bad users based on their User-Agent string" for more details.

Hope this will help you.

- Kailash
Shopify Divi WordPress Theme
Tags: