Facebook links to my site resolve as 403 forbidden

前端 未结 2 571
有刺的猬
有刺的猬 2021-01-13 02:03

Hi I\'m experiencing a super weird problem.
Whenever I post links to my website on Facebook, they come up as Forbidden.
The site itself works great and I have no see

2条回答
  •  情话喂你
    2021-01-13 03:05

    You must have a rule somewhere that reads the HTTP_REFERER and rejects incoming links from Facebook. Seriously. This is what happens between the lines:

    No referrer

    telnet www.offshoreinjuries.com 80
    HEAD /blog/deepwater-horizon-11/ HTTP/1.1
    Host: www.offshoreinjuries.com
    
        HTTP/1.1 200 OK
        Date: Fri, 28 May 2010 09:19:45 GMT
        Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
        X-Powered-By: PHP/5.2.12
        X-Pingback: http://www.offshoreinjuries.com/blog/xmlrpc.php
        Content-Type: text/html; charset=UTF-8
    

    200 OK, good.

    Facebook referrer

    telnet www.offshoreinjuries.com 80
    HEAD /blog/deepwater-horizon-11/ HTTP/1.1
    Host: www.offshoreinjuries.com
    Referer: http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.offshoreinjuries.com%2Fblog%2Fdeepwater-horizon-11%2F&h=834ea
    
        HTTP/1.1 403 Forbidden
        Date: Fri, 28 May 2010 09:21:04 GMT
        Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
        Content-Type: text/html; charset=iso-8859-1
    

    403 Forbidden, bad.

    Any other referrer

    telnet www.offshoreinjuries.com 80
    HEAD /blog/deepwater-horizon-11/ HTTP/1.1
    Host: www.offshoreinjuries.com
    Referer: http://alvaro.es/
    
        HTTP/1.1 200 OK
        Date: Fri, 28 May 2010 09:20:36 GMT
        Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
        X-Powered-By: PHP/5.2.12
        X-Pingback: http://www.offshoreinjuries.com/blog/xmlrpc.php
        Content-Type: text/html; charset=UTF-8
    

    200 OK again.

    Your server is actively rejecting visitors from Facebook.

提交回复
热议问题