检查寄存域名的有效方法? [英] efficient way to check parked domains?
问题描述
我正在编写一个脚本,用于检查给定域是否已驻留.到目前为止,我有此解决方案:
I am writing a script that checks if given domain is parked or not. so far, I have this solution:
- 在网址末尾添加几个字符.
- 如果url重定向到另一个页面,并且
- 返回302 http状态代码,然后它是托管域.
- 返回302以外的值,则它是正常域.
因此,任何建议都将不胜感激.
so any suggestions are greatly appreciated.
推荐答案
它不是那么简单.302响应仅表示内容暂时位于其他位置.这可以在普通网站上发生,而并不总是在停放网站上发生.
It's not as simple as that. A 302 response just means content is temporarily at a different location. This can happen on a normal website and it doesn't always happen on a parked site.
我在一家拥有20,000多个托管域名的ISP工作,我们在其中的任何一个域名上都没有使用302.
I worked at an ISP with over 20,000 parked domains and we didn't use 302's on any of them.
我认为您不会为此找到100%的解决方案.即使您在页面上检查了诸如购买此域名"和此域名可能会出售"之类的短语,您也不确定.
I don't think you'll find a 100% solution for this. Even if you checked the page for phrases such as "Buy This Domain" and "This Domain May Be For Sale" you won't know for sure.
这篇关于检查寄存域名的有效方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!