<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Simple developer method for checking individual URLs</title>
	<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/</link>
	<description>A blog about and from PhishTank, a collaborative clearinghouse for data about phishing.</description>
	<pubDate>Thu, 21 Aug 2008 06:34:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Angsuman Chakraborty</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-64755</link>
		<pubDate>Sun, 20 Jan 2008 04:49:51 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-64755</guid>
					<description>The POST method doesn't work for most url's. The problem is the base64 encoded string. Sometimes it contains = (equals) which doesn't work well within post context. The solution is to urlencode the base64 string. However PhishTank POST method processing code doesn't appear to be recognizing it resulting in malformed url in either case (with or without urlencode). 

However the older GET method works fine and is recommended.

We are using PhishTank API in &lt;a href="http://blog.taragana.com/index.php/category/comment-guard-plugin/" rel="nofollow"&gt;Comment Guard Pro&lt;/a&gt;, to be released on 28th January 2008, to detect spams (one of the modules). Any feedback would be appreciated.</description>
		<content:encoded><![CDATA[<p>The POST method doesn&#8217;t work for most url&#8217;s. The problem is the base64 encoded string. Sometimes it contains = (equals) which doesn&#8217;t work well within post context. The solution is to urlencode the base64 string. However PhishTank POST method processing code doesn&#8217;t appear to be recognizing it resulting in malformed url in either case (with or without urlencode). </p>
<p>However the older GET method works fine and is recommended.</p>
<p>We are using PhishTank API in <a href="http://blog.taragana.com/index.php/category/comment-guard-plugin/" rel="nofollow">Comment Guard Pro</a>, to be released on 28th January 2008, to detect spams (one of the modules). Any feedback would be appreciated.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eric Pugh</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-56843</link>
		<pubDate>Sun, 02 Dec 2007 16:54:00 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-56843</guid>
					<description>I wanted to comment on the API, I have found it very complex to use.  I am working on Rails app http://www.fish4brains.com, and I looked at the chunk of code provided here http://www.edazzle.net/#phishtank, as well as using the legacy method:

  def phish?
    enc = Base64.encode64(@uri).chop
    res = Net::HTTP.post_form(URI.parse('http://checkurl.phishtank.com/checkurl/'),
                            {'url'=&#62;enc})
    doc = Hpricot(res.body)
    if doc.search("//errortext").size &#62; 0 then
      raise "Found error in url: #{@uri}"
    end

    return doc.search("//verified").inner_html=="true"
  end

The SSL based api with Frobs is very difficult to implement, and I am not sure why, at least for checking data, that it is so complex.  Same applies for url encoding using the legacy developer method, still too complex..  I don't understand why it isn't as simple as http://api.phishtank.com/url?url=http://someurl.com

It would reduce the complexity of integration, and boost adoption.  At least right now I've attempted to use the service twice, and both times run out of steam.  I thought the simple url encoding would work, and it seemed to the first time around, but a couple weeks later the results started failing with in_database=false for everything.</description>
		<content:encoded><![CDATA[<p>I wanted to comment on the API, I have found it very complex to use.  I am working on Rails app <a href='http://www.fish4brains.com,' rel='nofollow'>http://www.fish4brains.com,</a> and I looked at the chunk of code provided here <a href='http://www.edazzle.net/#phishtank,' rel='nofollow'>http://www.edazzle.net/#phishtank,</a> as well as using the legacy method:</p>
<p>  def phish?<br />
    enc = Base64.encode64(@uri).chop<br />
    res = Net::HTTP.post_form(URI.parse(&#8217;http://checkurl.phishtank.com/checkurl/&#8217;),<br />
                            {&#8217;url&#8217;=&gt;enc})<br />
    doc = Hpricot(res.body)<br />
    if doc.search(&#8221;//errortext&#8221;).size &gt; 0 then<br />
      raise &#8220;Found error in url: #{@uri}&#8221;<br />
    end</p>
<p>    return doc.search(&#8221;//verified&#8221;).inner_html==&#8221;true&#8221;<br />
  end</p>
<p>The SSL based api with Frobs is very difficult to implement, and I am not sure why, at least for checking data, that it is so complex.  Same applies for url encoding using the legacy developer method, still too complex..  I don&#8217;t understand why it isn&#8217;t as simple as <a href='http://api.phishtank.com/url?url=http://someurl.com' rel='nofollow'>http://api.phishtank.com/url?url=http://someurl.com</a></p>
<p>It would reduce the complexity of integration, and boost adoption.  At least right now I&#8217;ve attempted to use the service twice, and both times run out of steam.  I thought the simple url encoding would work, and it seemed to the first time around, but a couple weeks later the results started failing with in_database=false for everything.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: John Nagle</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-9273</link>
		<pubDate>Tue, 06 Mar 2007 06:31:31 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-9273</guid>
					<description>Re previous message: posting the reply XML into blog comments did not work.

What I got back was, essentially

in_database = true
verified = false

with correct url and details links.</description>
		<content:encoded><![CDATA[<p>Re previous message: posting the reply XML into blog comments did not work.</p>
<p>What I got back was, essentially</p>
<p>in_database = true<br />
verified = false</p>
<p>with correct url and details links.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: John Nagle</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-9272</link>
		<pubDate>Tue, 06 Mar 2007 06:28:00 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-9272</guid>
					<description>Possible bug in API query:

The mechanics of querying the API work fine, but the "valid" flag may have problems.  I tried querying:

"http://pardonus.nl/update/", 

which is listed as a "valid phish", and got back this XML:



 
 
  2007-03-05T15:07:04-08:00
 
 
  966f835b
 
 
  71.139.204.250.45eca29866e790.42437624
 
 
  
   
    
   
   
    true
   
   
    119617
   
   
    
   
   
    false
   
  
 


Note that "verified" is "false".  That's wrong.  If you check the PhishTank details URL returned, that page says that this is a verified phish.  

Sometimes I do get back "true" for the "verified" value, but the XML doesn't consistently agree with the details page.  

Is there an out-of-sync server somewhere?</description>
		<content:encoded><![CDATA[<p>Possible bug in API query:</p>
<p>The mechanics of querying the API work fine, but the &#8220;valid&#8221; flag may have problems.  I tried querying:</p>
<p>&#8220;http://pardonus.nl/update/&#8221;, </p>
<p>which is listed as a &#8220;valid phish&#8221;, and got back this XML:</p>
<p>  2007-03-05T15:07:04-08:00</p>
<p>  966f835b</p>
<p>  71.139.204.250.45eca29866e790.42437624</p>
<p>    true</p>
<p>    119617</p>
<p>    false</p>
<p>Note that &#8220;verified&#8221; is &#8220;false&#8221;.  That&#8217;s wrong.  If you check the PhishTank details URL returned, that page says that this is a verified phish.  </p>
<p>Sometimes I do get back &#8220;true&#8221; for the &#8220;verified&#8221; value, but the XML doesn&#8217;t consistently agree with the details page.  </p>
<p>Is there an out-of-sync server somewhere?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: EP</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-7582</link>
		<pubDate>Fri, 23 Feb 2007 12:06:58 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-7582</guid>
					<description>I'm wondering if there is any way to search PhishTank's archive of verified active and verified inactive.  I'm doing a little research project for school and wouldn't mind finding something along those lines.  Thanks much.

EP</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering if there is any way to search PhishTank&#8217;s archive of verified active and verified inactive.  I&#8217;m doing a little research project for school and wouldn&#8217;t mind finding something along those lines.  Thanks much.</p>
<p>EP
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ram</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-3672</link>
		<pubDate>Fri, 02 Feb 2007 19:01:46 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-3672</guid>
					<description>I have tried a number of valid phishes such as 93684 and 93656 and they all return
in_database as false. However http://www.google.com  returned as in_database true.

HELP!!!</description>
		<content:encoded><![CDATA[<p>I have tried a number of valid phishes such as 93684 and 93656 and they all return<br />
in_database as false. However <a href='http://www.google.com' rel='nofollow'>http://www.google.com</a>  returned as in_database true.</p>
<p>HELP!!!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: my public notepad</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-256</link>
		<pubDate>Sun, 19 Nov 2006 19:30:20 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-256</guid>
					<description>&lt;strong&gt;PhishTank bookmarklet...&lt;/strong&gt;

On Friday Thomas discovered OpenDNS - clicking around we soon discovered PhishTank, and boy - that service looks awesome. I'm already thinking about it how I can talk Marc into integrating it our with CGPro mailserver. So being a fan......</description>
		<content:encoded><![CDATA[<p><strong>PhishTank bookmarklet&#8230;</strong></p>
<p>On Friday Thomas discovered OpenDNS - clicking around we soon discovered PhishTank, and boy - that service looks awesome. I&#8217;m already thinking about it how I can talk Marc into integrating it our with CGPro mailserver. So being a fan&#8230;&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Amit Chakradeo</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-244</link>
		<pubDate>Fri, 17 Nov 2006 19:56:33 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-244</guid>
					<description>Here are the bookmarklets as wished (tested only on Firefox 2.0)

http://amit.chakradeo.net/2006/11/17/check-if-a-site-is-phishing-site/</description>
		<content:encoded><![CDATA[<p>Here are the bookmarklets as wished (tested only on Firefox 2.0)</p>
<p><a href='http://amit.chakradeo.net/2006/11/17/check-if-a-site-is-phishing-site/' rel='nofollow'>http://amit.chakradeo.net/2006/11/17/check-if-a-site-is-phishing-site/</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Moike</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-235</link>
		<pubDate>Thu, 16 Nov 2006 02:35:46 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-235</guid>
					<description>This works much better!   I'm still having a problem verifying 2 URLs - for example, try the URLS from #11912 and #29228 - but I get a 'false' for present_in_database instead of 'true'.</description>
		<content:encoded><![CDATA[<p>This works much better!   I&#8217;m still having a problem verifying 2 URLs - for example, try the URLS from #11912 and #29228 - but I get a &#8216;false&#8217; for present_in_database instead of &#8216;true&#8217;.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: John Roberts</title>
		<link>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-228</link>
		<pubDate>Wed, 15 Nov 2006 20:37:07 +0000</pubDate>
		<guid>http://www.phishtank.com/blog/2006/10/30/simple-developer-method-for-checking-individual-urls/#comment-228</guid>
					<description>Ilgaz, absolutely... we encourage anyone to write one! We'll promote it.</description>
		<content:encoded><![CDATA[<p>Ilgaz, absolutely&#8230; we encourage anyone to write one! We&#8217;ll promote it.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
