Is it possible to block clicks on my domain's links when used on another website?

44 Views Asked by At

Is it possible to block traffic (to a 401 page, for example) if a user clicks on a URL from my domain that's used to 301 redirect to another domain? All the URLs have the same structure: "www.mywebsite.com/go/*"

I'm using the ThirstyAffiliate plugin on WordPress to manage a large number of external links. My content is being scraped and republished by other websites, however, including my ThirstyAffiliate links. I'm thus getting clicks on those links from suspicious sources and I would like to block them.

Ideally, I would like to block these clicks with AWS WAF, since that's the solution we're using with CloudFront to serve our content. I can also do it at the server-level if needed though.

I'm guessing using the Referer header would be a good place to start, but I'm not sure how to implement this.

0

There are 0 best solutions below