Facebook调试返回403禁止 [英] Facebook debug returns 403 Forbidden

查看:213
本文介绍了Facebook调试返回403禁止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 Facebook的调试器运行我的URL,看看我是否设置了正确的元标记,并且,看到这些东西一般工作。



当我把我的URL放入时,我得到一个 403 Forbidden 作为回报。



URL是一个子域,域本身也返回 403 Forbidden



阅读另一篇文章 Facebook链接到我的网站解决为403禁止,我认为我的主机可能已经设置了一个块或东西,但是,我似乎无法从我的电脑重新创建该块。 p>

我一直在试图欺骗引荐来源和用户代理,但没有运气。在打电话给我的主持人之前,我可以错过什么?



如果相关的URL是: http://distorpia.dadiugames.dk/

解决方案

命令I用于测试这个问题是 curl -i -H'Accept:* / *'-H'范围:bytes = 0-40960'-H'连接:close'-A'facebookexternalhit / 1.1(+ http://www.facebook.com/externalhit_uatext.php)'http://whatever.com - 这包括Facebook抓取器发送的一些主机有些主机与



看起来您的托管设置无法正确处理这些头文件中的一个/一些 - 我复制了403错误:



对于您的URL,返回:

  HTTP / 1.1 403禁止
日期:星期二,2011年12月13日20:54 :07 GMT
服务器:Apache / 2.2.6 mod_auth_kerb / 5.3 PHP / 5.2.17 mod_fcgid / 2.3.6
接受范围:字节
连接:关闭
Transfe r-Encoding:chunked
内容类型:text / html

<!DOCTYPE HTML PUBLIC - // W3C // DTD HTML 4.0 Transitional // EN>
< html>
< head>
< title> Parallels H-Sphere< / title>

{{删除此部分}}

< h2>错误403:禁止< / h2>

< p>您没有权限访问此页面。
这通常意味着以下之一:< / p>
< ul>
< li>此文件和目录权限使它们不能从Internet。< / li>
< li> .htaccess包含阻止公开访问此文件或目录的说明。< / li>
< / ul>
< p>如果能够执行此操作,请检查文件和目录权限以及.htaccess配置。
否则,请求您的网站管理员授予您访问权限。< / p>


I am trying to run my URL through Facebook's Debugger to see if I have setup the correct meta tags, and also, to see that stuff works in general.

When I put my URL in, I get a 403 Forbidden in return.

The URL is to a subdomain, and the domain itself also returns 403 Forbidden.

Reading another post Facebook links to my site resolve as 403 forbidden, I think that my host might have setup a block or something, however, I can't seem to recreate the block from my computer.

I have been trying to spoof the referrer and the user agent, but without luck. Before calling my host, what could I have missed?

If it's of relevance the URL in question is: http://distorpia.dadiugames.dk/

解决方案

The command I use to test this issue is curl -i -H 'Accept: */*' -H 'Range: bytes=0-40960' -H 'Connection: close' -A 'facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)' http://whatever.com - this includes some of the headers sent by the Facebook crawler that some hosts have problems with

Looks like your hosting setup can't handle one/some of those headers properly - I replicated the 403 error:

For your URL, this returned:

HTTP/1.1 403 Forbidden
Date: Tue, 13 Dec 2011 20:54:07 GMT
Server: Apache/2.2.6 mod_auth_kerb/5.3 PHP/5.2.17 mod_fcgid/2.3.6
Accept-Ranges: bytes
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Parallels H-Sphere</title>

{{REMOVED THIS PART}}

    <h2>Error 403: Forbidden</h2>

<p>You don't have permissions to access this page.
This usually means one of the following:</p>
<ul>
<li>this file and directory permissions make them unavailable from the Internet.</li>
<li>.htaccess contains instructions that prevent public access to this file or directory.</li>
</ul>
<p>Please check file and directory permissions and .htaccess configuration if you are able to do this.
Otherwise, request your webmaster to grant you access.</p>

这篇关于Facebook调试返回403禁止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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