<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《file_get_contents()函数也可以发送HTTP_REFERER》的评论</title>
	<atom:link href="http://www.deepseath.com/?feed=rss2&#038;p=522" rel="self" type="application/rss+xml" />
	<link>http://www.deepseath.com/?p=522</link>
	<description></description>
	<lastBuildDate>Thu, 24 Jan 2019 06:29:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：Deepseath</title>
		<link>http://www.deepseath.com/?p=522&#038;cpage=1#comment-9559</link>
		<dc:creator>Deepseath</dc:creator>
		<pubDate>Tue, 13 Sep 2011 08:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepseath.com/?p=522#comment-9559</guid>
		<description>可以的。比如，下面这样写就可以伪造很多HTTP报头，你可以通过抓包工具看看真正的浏览器都发送什么报头，然后模拟一下就行^_^

$optionget = array(&#039;http&#039; =&gt; array(&#039;method&#039; =&gt; &quot;GET&quot;, &#039;header&#039; =&gt; &quot;User-Agent:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)\r\nAccept:*/*\r\nReferer:&quot; . $referer . &quot;\r\nCookie:&quot; . $cookie));
$file = file_get_contents($url, false , stream_context_create($option));
</description>
		<content:encoded><![CDATA[<p>可以的。比如，下面这样写就可以伪造很多HTTP报头，你可以通过抓包工具看看真正的浏览器都发送什么报头，然后模拟一下就行^_^</p>
<p>$optionget = array(&#8216;http&#8217; =&gt; array(&#8216;method&#8217; =&gt; “GET”, &#8216;header&#8217; =&gt; “User-Agent:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)\r\nAccept:*/*\r\nReferer:” . $referer . “\r\nCookie:” . $cookie));<br />
$file = file_get_contents($url, false , stream_context_create($option));</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：果冻网</title>
		<link>http://www.deepseath.com/?p=522&#038;cpage=1#comment-9558</link>
		<dc:creator>果冻网</dc:creator>
		<pubDate>Tue, 13 Sep 2011 05:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepseath.com/?p=522#comment-9558</guid>
		<description>COOKIES 也可以偽造嗎?</description>
		<content:encoded><![CDATA[<p>COOKIES 也可以偽造嗎?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Deepseath</title>
		<link>http://www.deepseath.com/?p=522&#038;cpage=1#comment-9557</link>
		<dc:creator>Deepseath</dc:creator>
		<pubDate>Sun, 11 Sep 2011 07:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepseath.com/?p=522#comment-9557</guid>
		<description>呵呵，除了HTTP_REFERER，一般的HTTP头都可以伪造。</description>
		<content:encoded><![CDATA[<p>呵呵，除了HTTP_REFERER，一般的HTTP头都可以伪造。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：果冻网</title>
		<link>http://www.deepseath.com/?p=522&#038;cpage=1#comment-9555</link>
		<dc:creator>果冻网</dc:creator>
		<pubDate>Fri, 09 Sep 2011 10:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.deepseath.com/?p=522#comment-9555</guid>
		<description>原来file_get_contents也可以伪造HTTP_REFERER</description>
		<content:encoded><![CDATA[<p>原来file_get_contents也可以伪造HTTP_REFERER</p>
]]></content:encoded>
	</item>
</channel>
</rss>
