This will not work in the following cases.
For Instance:
Details Example:
www.abc.com (10 Spam Links or Domains)
abc.com (10 Spam Links Domains)
Note: Suppose our Current domain is abc.com, and www.abc.com has been redirecting to abc.com.
In the Above Case, only the abc.com referrer will be blocked and show a 403 error, whereas if you also block www references URLs or Domains, these links will not be blocked for referral traffic.
If someone has a solution to this, please share.