URL缩短垃圾邮件 [英] URL Shortener Spam

查看:124
本文介绍了URL缩短垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我开始收到垃圾邮件的URL到通过URL缩短我的论坛软件。在过去,他们很容易通过域名来阻止,但我不能确切地阻止URL缩短域名,因为我看到了一些有效的使用为好。

Lately I'm starting to receive spam URLs into my forum software via URL shortener. In the past, they are easy to block by domain, but I can't exactly block the domain for URL shortener since I'm seeing some valid usage as well.

这是如何管理这些垃圾邮件URL(和垃圾邮件发送者正在使用它)任何最佳做法?

Any best practice on how to manage these spam URLs (and spammers that are using it)?

推荐答案

您也可以做类似 HTTP:// WWW当后提交.untiny.me / 。基本上,发送一个HTTP请求,并捕获HTTP 301响应。然后,您可以检查你正在被重定向到URL和拒绝/允许根据您的策略。

You could also do something like http://www.untiny.me/ when a post is submitted. Basically, send an HTTP request and capture the "HTTP 301" response. You can then examine the URL you're being redirected to and deny/allow based on your policy.

例如:

C:\>wget -O NUL http://tiny.pl/htk
--2011-01-24 21:47:33--  http://tiny.pl/htk
Resolving tiny.pl... 79.96.141.187
Connecting to tiny.pl|79.96.141.187|:80... connected.
HTTP request sent, awaiting response... 301           <====
Location: http://www.google.com [following]           <====
--2011-01-24 21:47:34--  http://www.google.com/

标记由相关行&LT; ====

这篇关于URL缩短垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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