无论您使用哪种软件,您的网站都会在第一次请求时运行检查,并在第一次请求时通过驱动重定向来证明和注入一些东西。
$ curl -Iv http://www.zen-slim.com/
* About to connect() to www.zen-slim.com port 80 (#0)
* Trying 46.252.196.1... connected
* Connected to www.zen-slim.com (46.252.196.1) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.21.6 (i386-pc-win32) libcurl/7.21.6 OpenSSL/0.9.8r zlib/1.2.5
> Host: www.zen-slim.com
> Accept: */*
>
< HTTP/1.1 302 Moved Temporarily
HTTP/1.1 302 Moved Temporarily
< Content-Length: 0
Content-Length: 0
< Location: /?9cc38870
Location: /?9cc38870
<
* Connection #0 to host www.zen-slim.com left intact
* Closing connection #0
或通过http://blooming-mountain-4729.herokuapp.com/web/shorturl.php?http://www.zen-slim.com/
Original URL: http://www.zen-slim.com/
Resulting URL: /
Status code (after all redirects): 403
Number of responses: 3
Number of redirects: 2
* http://www.zen-slim.com/ -- 302 --> /?07731fc0
* /?07731fc0 -- 302 --> /
之后,如果浏览器不遵循套件,它甚至会给你一个 403(禁止):
Original URL: http://www.zen-slim.com/
Resulting URL: http://www.zen-slim.com/
Status code (after all redirects): 403
Number of responses: 1
Number of redirects: 0
我猜这不是一个编程,而是一个与网站管理员相关的问题。