Skip to content

Commit

Permalink
Remove experimental cloud spam reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
W1zzardTPU committed Dec 2, 2015
1 parent 16f781a commit 0839e25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
9 changes: 0 additions & 9 deletions addon-TPUDetectSpamReg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ Modify the value of $score to adjust scoring.]]></event>
<sub_options></sub_options>
<relation group_id="TPUDetectSpamReg" display_order="130"/>
</option>
<option option_id="TPUDetectSpamRegCloudReport" edit_format="onoff" data_type="boolean" can_backup="1">
<default_value>1</default_value>
<edit_format_params></edit_format_params>
<sub_options></sub_options>
<relation group_id="TPUDetectSpamReg" display_order="2"/>
</option>
<option option_id="TPUDetectSpamRegDebug" edit_format="onoff" data_type="boolean" can_backup="1">
<default_value>0</default_value>
<edit_format_params></edit_format_params>
Expand Down Expand Up @@ -354,9 +348,6 @@ purgedays</sub_options>
<phrase title="option_TPUDetectSpamRegAS" version_id="0" version_string="1.0.0"><![CDATA[AS Name]]></phrase>
<phrase title="option_TPUDetectSpamRegAS_explain" version_id="0" version_string="1.0.0"><![CDATA[One entry per line. Format: <i>score|first word of AS name or AS number</I><br />
Example: <I>+1|OVH</I> or <I>+1|16276</I>]]></phrase>
<phrase title="option_TPUDetectSpamRegCloudReport" version_id="6" version_string="1.5.0"><![CDATA[Submit registration data to developer]]></phrase>
<phrase title="option_TPUDetectSpamRegCloudReport_explain" version_id="6" version_string="1.5.0"><![CDATA[Data sent: username, ip address, email host (@gmail.com), anonymized email username (SHA1, e.g. 'user' becomes 12dea96fec20593566ab75692c9949596833adc9).
I'm looking into developing an anti-spam cloud service, for which I need some initial data. Everything will be treated confidential of course.]]></phrase>
<phrase title="option_TPUDetectSpamRegDebug" version_id="0" version_string="1.0.0"><![CDATA[Debug Mode]]></phrase>
<phrase title="option_TPUDetectSpamRegDebug_explain" version_id="0" version_string="1.0.0"><![CDATA[Logs as much as possible, including the result of every single rule check.]]></phrase>
<phrase title="option_TPUDetectSpamRegEmail" version_id="0" version_string="1.0.0"><![CDATA[Email address]]></phrase>
Expand Down
25 changes: 0 additions & 25 deletions upload/library/TPUDetectSpamReg/ModelSpamPrevention.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,31 +59,6 @@ public function allowRegistration(array $user, Zend_Controller_Request_Http $req

$o=XenForo_Application::getOptions();

if ($o->TPUDetectSpamRegCloudReport)
{
list($email, $domain)=explode('@', $user['email']);
$email=sha1($email);

$postfields=array(
'username'=>$user['username'],
'ip'=>$user['ip'],
'email_user'=>$email,
'email_host'=>$domain
);

$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.techpowerup.com/xf_antispam/check.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
$curl_result=curl_exec($ch);

curl_close($ch);
}

if ($o->TPUDetectSpamRegVerbose)
$this->logScore('tpu_detectspamreg_checking', 0, array('username'=>$user['username'], 'email'=>$user['email'], 'ip'=>$user['ip']));

Expand Down

0 comments on commit 0839e25

Please sign in to comment.