<?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"
	>
<channel>
	<title>Comments on: Odd way to break in</title>
	<atom:link href="http://news.freshports.org/2007/10/02/odd-way-to-break-in/feed/" rel="self" type="application/rss+xml" />
	<link>http://news.freshports.org/2007/10/02/odd-way-to-break-in/</link>
	<description>News and announcements regarding FreshPorts, The Place For Ports.</description>
	<pubDate>Thu, 17 May 2012 00:03:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Agent Elrond</title>
		<link>http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1459</link>
		<dc:creator>Agent Elrond</dc:creator>
		<pubDate>Sun, 02 Mar 2008 14:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1459</guid>
		<description>I also tire of "script kiddies" and like your solution.  What about adding a redirect a variant like this; redirect them back to their own box?

$redirect = "http://".$_SERVER['REMOTE_ADDR'].$_SERVER['REQUEST_URI'];
header("Location: $redirect");

Granted, they may not be running anything on port 80, but if they are and they're going to fill up someone's log with goop, let 'em fill up their own. ;-D</description>
		<content:encoded><![CDATA[<p>I also tire of &#8220;script kiddies&#8221; and like your solution.  What about adding a redirect a variant like this; redirect them back to their own box?</p>
<p>$redirect = &#8220;http://&#8221;.$_SERVER[&#8217;REMOTE_ADDR&#8217;].$_SERVER[&#8217;REQUEST_URI&#8217;];<br />
header(&#8221;Location: $redirect&#8221;);</p>
<p>Granted, they may not be running anything on port 80, but if they are and they&#8217;re going to fill up someone&#8217;s log with goop, let &#8216;em fill up their own. ;-D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Langille</title>
		<link>http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1453</link>
		<dc:creator>Dan Langille</dc:creator>
		<pubDate>Wed, 14 Nov 2007 02:13:56 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1453</guid>
		<description>The code snippet is PHP.  The function is defined here: http://www.php.net/substr

$stype corresponds to the parameters passed to search.php  in the URL.  For example, stype=http://0x00013.50webs.org/tesgcc.txt?

The substr checks to see if the first few characters of $stype starts with those characters.

Does that help some?</description>
		<content:encoded><![CDATA[<p>The code snippet is PHP.  The function is defined here: <a href="http://www.php.net/substr" rel="nofollow">http://www.php.net/substr</a></p>
<p>$stype corresponds to the parameters passed to search.php  in the URL.  For example, stype=http://0&#215;00013.50webs.org/tesgcc.txt?</p>
<p>The substr checks to see if the first few characters of $stype starts with those characters.</p>
<p>Does that help some?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peco</title>
		<link>http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1452</link>
		<dc:creator>peco</dc:creator>
		<pubDate>Wed, 14 Nov 2007 00:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1452</guid>
		<description>Could you explain, for those of us not up to speed, what this code is doing

if (substr($stype, 0, 7) === 'http://') {

Thanks!</description>
		<content:encoded><![CDATA[<p>Could you explain, for those of us not up to speed, what this code is doing</p>
<p>if (substr($stype, 0, 7) === &#8216;http://&#8217;) {</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1446</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 10 Oct 2007 20:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://news.freshports.org/2007/10/02/odd-way-to-break-in/#comment-1446</guid>
		<description>Thank you for this simple solution.</description>
		<content:encoded><![CDATA[<p>Thank you for this simple solution.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

