避免垃圾邮件从网络发送电子邮件 [英] Avoiding spam sending emails from a web

查看:101
本文介绍了避免垃圾邮件从网络发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在思考一个全新的网页中的联系页面我用PHP编程。



将邮件地址放在那里的想法很可怕,因为垃圾邮件机器人会庆祝它...



我正在考虑使用PHP变量来设置邮件地址,然后在调用邮件功能时使用变量,但是...



这会有帮助吗?



是否有任何方法可以在不使用javascript或任何其他脚本语言的情况下覆盖邮件地址?



我会喜欢只使用HTML和PHP ...



谢谢大家!



什么我试过了:



仍然没什么,我只想着实现这个的方法......

Hello all,

I'm thinking on a contact page in a brand new web page I'm programming in PHP.

The idea of putting a mail address there is scary as the spam bots will celebrate it...

I'm thinking about using a PHP variable to set the mail address and then use the variable on the call to the mail function, but...

Will this help at all?

Is there any method that covers the mail address without using javascript or any other scripting language?

I would like to use HTML and PHP only...

Thank you all!

What I have tried:

Still nothing, I'm just thinking on the method to achieve that...

推荐答案

当您在服务器上使用某种邮件脚本时,访问者将隐藏该地址。他们只会看到输入表格而不是邮件地址。



但是网站通常需要一个包含邮件地址的联系信息的关于页面(取决于国家;在EC中至少对于商业网站而言)。即使不需要并提供邮件表格,提供地址也是一种好的风格,允许读者与您联系(取决于您的页面内容)。



你应该也不要使用图像模糊地址。视障人士使用的文字转语音系统无法处理此问题。



您必须使用地址收割机。使用表单本身时,即使邮件形式也无法保护您免受垃圾邮件的攻击(有机器人在页面上查找邮件表单链接)。
When you use some kind of mail script on your server, the address is hidden from visitors. They will only see the input form but not the mail address.

But web sites usually require an About page with contact information including the mail address (depending on the country; in the EC at least for commercial sites). Even if not required and providing a mail form, providing an address is good style to allow readers to contact you (depending on the content of your page).

You should also not obfuscate the address using an image. This can't be processed by text to speech systems used by visually impaired visitors.

You have to live with address harvesters. Even a mail form will not protect you from spam when using the form itself (there are bots looking for mail form links on your page).


我通过填写来处理此问题-通知。提交时,它会将字段发送回服务器(php页面),该服务器使用数据创建SMTP邮件。这是从服务器发送的,客户端没有它的踪迹。  实际上,您可以按原样保存数据,如果符合您的需求,则完全跳过邮件。



FWIW,许多使用的网站这种情况还会检查你是否是一个活人。例如,像验证码一样,或者最近,像3x3图像阵列,你被要求选择具有特定功能的图像。作为您选择的方法,您可以通过在页面上没有电子邮件地址来保护您的电子邮件免受屏幕抓取。如果我开始遇到问题,我只会去测试生物。





I handle this by having a fill-in form. When it's submitted, it sends the fields back to the server (php page) which uses the data to create SMTP mail. This is sent from the server and there's no trace of it on the client side.   Actually, you can just save the data, as is, and skip the mailing altogether if that's consistent with your needs.

FWIW, many sites that use this type of scenario also have a check to see if you're a live person. Like captcha, for example, or more recently, a 3x3 array of images and you're asked to select images with a certain feature. Be the method you choose what it may be, you can protect your email from screen scraping by just not having an email address on the page. I'd only go as far as testing for a living being if I started to have problems.




这篇关于避免垃圾邮件从网络发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆