Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
DMCA Compliance Page
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2020-03-27 02:47:27
Just something I threw together, using a function found at the url in the source.

First, add this to backend/functions.php

// DMCA page e-mail encryption. It uses a substitution cipher with a different key for every page load.
// http://www.maurits.vdschee.nl/php_hide_email/
function hide_email($email) {
   $character_set = '+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz';
   $key           = str_shuffle($character_set);
   $cipher_text   = '';
   $id            = 'e' . rand(1, 999999999);
   for ($i = 0; $i < strlen($email); $i += 1)
       $cipher_text .= $key[strpos($character_set, $email[$i])];
   $script = 'var a="' . $key . '";var b=a.split("").sort().join("");var c="' . $cipher_text . '";var d="";';
   $script .= 'for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));';
   $script .= 'document.getElementById("' . $id . '").innerHTML="<a href=\\"mailto:"+d+"\\">"+d+"</a>"';
   $script = "eval(\"" . str_replace(array(
       "\\",
       '"'
   ), array(
       "\\\\",
       '\"'
   ), $script) . "\")";
   $script = '<script type="text/javascript">/*<![CDATA[*/' . $script . '/*]]>*/</script>';
   return '<span id="' . $id . '" style="font-weight:normal">(E-mail Protected). You need to <span style="font-weight:bold">enable</span> JavaScript.</span>' . $script;
}


Now upload dmca.php and modify the email address to the one you want, and thats it. Your email is claimed to be protected by using a method described in the function.  Visit their website for more info.
dmca.php.zip
Download
Unknown User
2020-03-27 10:35:05
Thank you for this mods.
Unknown User
2020-03-27 20:45:34
You have this option defaulted if you use cloudflare.

Also you can use <!--sse-->  Bad visitors won't see text / html which i write here <!--/sse-->
2020-03-27 22:12:16
Tested with Cloudflare and the service only hooks onto script type. SSI are very outdated, and should be used only to imply a outdated browser (really leans on IE conditional statements).

best practice is <!— comment, condition or wrap —>

Im a CSS3/HTML5 designer and that practice would have people frowning. Use server-side solution. Anyone can decrypt eval, however it’s the randomization that deters bots and email harvesting.
Unknown User
2020-03-27 22:54:39
This does exactly the same as cloudflare does in hiding emails from bots and those who has javascript disabled, except cloudflare has a better handling and more options

As  you can read here -> https://support.cloudflare.com/hc/en-us/articles/200170016-What-is-Email-Address-Obfuscation-
2020-03-28 05:14:27
I’m sure it does, but not everybody is on Cloudflare and (wish to have their A-record leaked), so we have here a simple function for the average joe / hosting. This is the first result on google search, this can be done at least 9 different ways.
2024-05-14 14:17:47
Thanks and working.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728