title: How to detect Twitter crawler visitting my site
body: <p>i run a wordpress blog and every post has Google’s AMP version of it.</p>
  
  <p>I share the link of standard version of the page, not AMP, to twitter every time i publish a post.</p>
  
  <p>At some point Twitter mobile app started to pick up the AMP rather than standard one. now followers see the AMP version when they tap the link i shared in Twitter app.</p>
  
  <p>it is possible because every standard page has a link for AMP version in the source code to let Search Engines know that there is the AMP for the standard one.</p>
  
  <p>However, the reason my blog supports AMP is Google only. i do not want twitter to know about it. Since AMPs are very limited, I cannot show visitors what i intended via AMP. </p>
  
  <p>I am guessing i could get rid of the link for AMP in PHP if the  crawler is Twitter.</p>
  
  <p>if there is a way to do it in PHP, how can it be done?</p>