<?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>SocialDeveloper.net &#187; Mods</title>
	<atom:link href="http://socialdeveloper.net/tag/mods/feed/" rel="self" type="application/rss+xml" />
	<link>http://socialdeveloper.net</link>
	<description>Building One Social Network At A Time.</description>
	<lastBuildDate>Thu, 02 Jul 2009 05:40:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL Injection Protection SE 2&amp;3+</title>
		<link>http://socialdeveloper.net/2009/01/sql-injection-protection-se-23/</link>
		<comments>http://socialdeveloper.net/2009/01/sql-injection-protection-se-23/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 00:43:40 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[Mods]]></category>
		<category><![CDATA[se]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://socialdeveloper.net/?p=69</guid>
		<description><![CDATA[One of the most common forms of online misshap that plagues online applications would have to revolve around the act of sql injections. SQL injection is a code injection technique that exploits a security vulnerability within the database layer of an application. So in other words, skilled attackers might possibly exploit SE and gain access [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most common forms of online misshap that plagues online applications would have to revolve around the act of sql injections. <a href="http://en.wikipedia.org/wiki/SQL_injection" target="_blank">SQL injection</a> is a code injection technique that exploits a <span class="mw-redirect">security vulnerability within the </span>database layer of an application. So in other words, skilled attackers might possibly exploit SE and gain access to your site. SE is pretty secure but I dont know if this has been done or if anyone running SE has had this happen. But you can prevent it. Just add this code your your .htaccess and you should be set.</p>
<h2>Step 1</h2>
<p>If this code isn&#8217;t already in your .htaccess then go ahead and add it. If it is, skip to the next part.</p>
<blockquote><p>RewriteEngine On<br />
Options +Followsymlinks</p></blockquote>
<h2>Step 2</h2>
<p>Then place this within your .htaccess at the root of your site.</p>
<blockquote><p># Block out any script trying to base64_encode crap to send via URL<br />
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]<br />
# Block out any script that includes a &lt;script&gt; tag in URL<br />
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]<br />
# Block out any script trying to set a PHP GLOBALS variable via URL<br />
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]<br />
# Block out any script trying to modify a _REQUEST variable via URL<br />
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})<br />
RewriteRule ^(.*)$ /home.php [F,L]</p></blockquote>
<p>So basically this locks out any harmful queries that might be injected into your db. This is usually done through the URL so by using mod_rewrite and these restrictions, your making one SE safer at a time. Hope for the best and plan for the worst I guess. If anyone does know more about SE security bugs or stories please share.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialdeveloper.net/2009/01/sql-injection-protection-se-23/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Integrate Google Analytics into SE 3+</title>
		<link>http://socialdeveloper.net/2009/01/integrate-google-analytics-into-se-3/</link>
		<comments>http://socialdeveloper.net/2009/01/integrate-google-analytics-into-se-3/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 05:32:06 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[Mods]]></category>
		<category><![CDATA[google analytics]]></category>

		<guid isPermaLink="false">http://socialdeveloper.net/?p=59</guid>
		<description><![CDATA[For people new to LAMP and other programing languages, you might not be familiar with Google Analytics. Most people have, but for those that haven&#8217;t, its a free reporting tool that lets you track the stats and visitors of visitors on your social network. Here is a quick description on how you can add Google [...]]]></description>
			<content:encoded><![CDATA[<p>For people new to LAMP and other programing languages, you might not be familiar with Google Analytics. Most people have, but for those that haven&#8217;t, its a free reporting tool that lets you track the stats and visitors of visitors on your social network. Here is a quick description on how you can add Google Analytics to your site.</p>
<h2>Step One</h2>
<p>Sign up for google analytics <a href="http://www.google.com/analytics/sign_up.html" target="_blank">here</a>, and add a site profile for your domain and proceed to the screen that gives you your tracking code. It should look something similar to this:</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;https://ssl.&#8221; : &#8220;http://www.&#8221;);<br />
document.write(unescape(&#8220;%3Cscript src=&#8217;&#8221; + gaJsHost + &#8220;google-analytics.com/ga.js&#8217; type=&#8217;text/javascript&#8217;%3E%3C/script%3E&#8221;));<br />
&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
try {<br />
var pageTracker = _gat._getTracker(&#8220;UA-4&#8212;&#8212;-&#8221;);<br />
pageTracker._trackPageview();<br />
} catch(err) {}&lt;/script&gt;</p></blockquote>
<h3>Step Two</h3>
<p>Go ahead and copy this code. You will need it when you edit the footer.tpl in the SocialEngine Admin section. Once you copy the code, go ahead and login to the admin section and navigate to HTML Templates. Once you get there, go ahead and click &#8220;footer.tpl&#8221; and the code should come up. Go ahead and scroll all the way to the bottom where it says <strong>&lt;/body&gt;</strong>.  Now go ahead and paste your Analytics code right before this. Now right above where it says &lt;script type&#8230;&#8230;.&gt; Type <strong>{literal}</strong> and right after where it says&lt;/script&gt; type<strong> {/literal}</strong> .</p>
<p>The literal tags prevent Smarty (The template engine) from confusing some of the code you pasted. You will get error messages if you dont use those literal tags so hope that helps. If you have any problems or ideas post em so we can come up with some easy mods for everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialdeveloper.net/2009/01/integrate-google-analytics-into-se-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
