admin管理员组文章数量:1418103
I'm working on a file that execute a SQL Request when the user goes in it, to know they clicked on the link.
I'm sending it to a lot of people of my company (they are all on Outlook).
However, in my db it's saying they almost all clicked on it (no one did). I believe it's something like a link analyzer from Outlook ?
Do you have an idea to fix it ?
A button to execute the sql request would fix it simply, but i really want it to be when they click on the link in the mail..
I'm working on a file that execute a SQL Request when the user goes in it, to know they clicked on the link.
I'm sending it to a lot of people of my company (they are all on Outlook).
However, in my db it's saying they almost all clicked on it (no one did). I believe it's something like a link analyzer from Outlook ?
Do you have an idea to fix it ?
A button to execute the sql request would fix it simply, but i really want it to be when they click on the link in the mail..
- Your webserver has no idea really when it receives a HTTP request, whether that request came from a link in an email, or someone typing the URL directly in their browser, or sharing the link with someone else, or if it was done by a bot, or a search engine or anything else. You can get hints sometimes from the nature of the request and sometimes the headers, but nothing that's actual proof. – ADyson Commented Jan 31 at 9:52
- 1 "I believe it's something like a link analyzer from Outlook ?" - probably, yes. Whether you can do something about it, depends on the specifics though. If this just requests the given URL to analyze the (static) page content, but without actually rendering the page like a browser would - then you could probably get away with making the actual request that does the DB update, in the background via JavaScript, on that page the user lands on when clicking this link. – C3roe Commented Jan 31 at 9:58
3 Answers
Reset to default 1A button to execute the sql request would fix it simply, but i really want it to be when they click on the link in the mail..
Put the button in the email, not on the landing page.
Bots (generally) won't make POST requests. So just change your link to a form submit.
First update the landing page on the server so that it only responds to POST requests. At the very start of the script, add something like:
if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
header('HTTP/1.1 405 Method Not Allowed');
exit;
}
Then update the email content. Instead of a link that makes a GET request:
<a href="http://my.server/page">click here</a>
Use a button that submits an empty form as a POST request:
<form method="post" action="http://my.server/page">
<input type="submit" value="click here">
</form>
It's still just one click for the recipient but now preview bots won't touch it.
Do you have an idea to fix it ?
When the user clicks the link, it goes to a page that asks for a 4-6 digit number.
The user then gets another email only containing the number. ONLY. NO HTML, a plain text email (that's what's known as an email) with no links, just the number with instructions.
Microsoft does not fills out forms and executes Javascript in plain text emails (it still follows links though).
Thanks everyone for their solution.
In the end, instead of doing my SQL request when someone goes on the page, I made it when the :hover (css) of a div is trigger. Not the body, but something close to be that big. Body won't work, but the div did.
本文标签: phpMicrosoft Outlook Mail AnalyzerStack Overflow
版权声明:本文标题:php - Microsoft Outlook Mail Analyzer - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745271935a2650946.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论