javascripthtmlhttp-redirecturl-shortenergoo.gl

How to make my website avoid being redirected from the URL shortener site (Like goo.gl)?


I have make a website that I hope everyone can access it directly, not access via the shortened url. That is, I do not allow anyone to shorten my website address. How can I do to my website? Thanks.


Solution

  • You can't.

    While it is (sometimes!) possible to detect that a visitor has reached your site from a link shortener, there is no way to prevent a user from creating a shortened link which points to your site, nor is there any way for you to prevent users from clicking such a link.

    You will just have to accept this and move on.