Search code examples
phphttp-referertelegram

How to detect user http-referer from telegram


I want detect users come from my telegram group (inline links) by php

But server does not return HTTP_REFERER

How it's possible


Solution

  • I solved it by adding ?telegram=1 to end of my URL

    Then i can detect users from telegram channel

    Another way to create different file name or create a subdomain!

    tg.example.com/[MY-QUERY]