﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; phpddos</title>
	<atom:link href="http://help.vps12.com/tag/phpddos/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>如何有效防止phpddos发包</title>
		<link>https://help.vps12.com/343.html</link>
		<comments>https://help.vps12.com/343.html#comments</comments>
		<pubDate>Sun, 17 Jun 2012 18:04:55 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[解决方案]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[phpddos]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[服务器安全]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=343</guid>
		<description><![CDATA[最近一段时间以来经常发现vps的客户出现发大量udp攻击包，照成网络带宽堵塞。协助客户查了一下原因是有的网站出现的代码漏洞黑客上传了php的udp发包代码。 如何有效的对此类事件的防护及处理呢？ 我们可以看到php的upd代码发包过程是由于利用了php的fsockopen函数漏洞进行的。 那我们可以这样限制一下php的代码函数： 下面是两种常用的禁用fsockopen的方法。 1、修改php.ini，将 disable_functions = 后加入 fsockopen 2、修改php.ini，将 allow_url_fopen = On 改为 allow_url_fopen = Off 一般可以写成这样： disable_functions = popen,exec,passthru,system,fsockopen,pfsockopen 然后我们在对机器对外发udp包进行限制。windows 我已经为大家写好了规则。大家可以直接通过服务器的本地安全策略进行导入。可以有效的限制udp发包。 下载： phpddos.ipsec Linux系统下可使用iptables防火墙进行限制udp发包，如下： ?View Code SHELL1 2 3 4 5 6 7 8 9 iptables -F &#160; iptables -A OUTPUT -p udp -j DROP &#160; iptables -I OUTPUT -p udp --dport [...]]]></description>
		<wfw:commentRss>https://help.vps12.com/343.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
