Skip to content

How can i check Magento site request comes from other unknown website in Magento 2?

for my Magento site marketing I use backlink,so some backlinks are right and some others are not not ok I need to block my site access from unknow sites backlink.

i used htacces code but that not working

# ----------------------------------------------------------------------
# Allow loading of external fonts
# ----------------------------------------------------------------------
<FilesMatch ".(ttf|otf|eot|woff|woff2)$">
    <IfModule mod_headers.c>
        SetEnvIf Origin "http(s)?://(www.)?(google.com|staging.google.com|development.google.com|otherdomain.example|dev02.otherdomain.example)$" AccessControlAllowOrigin=$0
        Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
        Header merge Vary Origin
    </IfModule>
</FilesMatch> 

so now I think that I do it manually so that I need to check all request that comes from wich site s o any one can help me how can I check which request comes from wich site?