0
我正在网站上的成员可以发布自己的Adsense横幅到网站上。最初我想用Adsense API与用户分享收入。 (他们只需输入他们的Adsense发布者ID),但我发现我不符合使用API的要求。在一个网站上的多个Adsense广告 - 避免SQL注入
我的选择是允许用户提交他们的整个AdSense广告单元代码,这将是什么样子,
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxx";
/* 300x250, created 10/4/10 */
google_ad_slot = "7431428552";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
有过滤所有以确保用户不会提交有害代码的安全方法?
谢谢!我没有听说过ctype_digit。我会放手一搏! :)数据类型的建议非常好! – CyberJunkie 2010-10-06 22:02:14