Hey,
I’m using some php code on my website to count number of visits. When I’m sharing a link on twitter I get about 6 visits immediately.
I have tried to stop this by using ($_SERVER[“HTTP_USER_AGENT”], “Twitterbot/1.0”) , It works almost, But I still get some visits when I share the link, about 3 visits.
Plus when I’m checking database, I can see the visits from different IPs like
150.70.173.9
17.142.150.65
167.114.1.197
My question, How to prevent and stop twitter crawler and all IPs from twitter, when sharing a link on it?