How to block traffic to your website from a particular domain?

If you are getting a lot of traffic from a particular domain that it causes load on your hosting server and subsequently suspending of your hosting account by your host, than you can use this .htaccess code to block that particular domain. This trick need your server to be based on Apache or Litespeed. Here are the steps to block a particular domain: