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
User Posts

Go to Profile

"dent, post: 60127":
Im also interested in https support for tt 2.0x
It is supported by some of the current client ..

BUT :

rtorrent (massive client for seedbox user) doesn't support by default SSL tracker.

If you don't want to take the risk of "kill" all your seedbox rtorrent user, keep the "no https" tracker working.

For myself, I just copy paste download.php to download-ssl.php, set all my link to the SSL, but on the torrent description, I set up the both link.

Sorry for my english.

After arround a year of an ssl tracker announce. I see SSL is a little bit worst for exchange, but work nice (My trackers (I have 7 php tracker) run in backend of a load balancer who can't really play good with SSL traffic)
not sure :

[url="http://www.milw0rm.com/exploits/8958"]http://www.milw0rm.com/exploits/8958[/url]
Yes I guess there is exploit on TT, our tracker was hacked but we don't know how yet. We correct some XSS but nothing real...

I guess it's a privilege escalation somewhere in the code with register global

$CURUSER['id'] = my current user id

$CURUSER['id'] = adminid etc...

We ask on our tracker to find good hackers to find exploit issue, but we don't find nothing real yet...

We can't passed on v2... Our tracker is 70% not TT code for now...
In backend/functions.php

Find :

	 //


$s = preg_replace("/\[hr\]/i", "<hr>", $s);
Afiter add :


	 // [spoil] TEXT [/spoil]

$s = preg_replace('/\[spoil\]((\s|.)+?)\[\/spoil\]/i', '<div class="spoilinfo"><div class="spoiltitle"><strong>Spoil: </strong><input value="Show" class="bbspoil" onclick="if (this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display != \'\') { this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display = \'\'; this.innerText = \'\'; this.value = \'Hide\'; } else { this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display = \'none\'; this.innerText = \'\'; this.value = \'Show\'; }" type="button" /></div><div class="bbspoilco"><div style="display: none;">\\1</div></div></div>', $s);





into your CSS add :



input.bbspoil{margin:0px;padding:0px;width:50px;font-size:10px;}

div.bbspoilco{margin-left:10px;}


(not necessary but look a little bit better)

See the captured file  :)

Edit: Taken from a PHPBB 3 forum for the javascript.

If someone fine a way to put the javascript into a file..

"djhowarth, post: 57127":
so this wont work in in php 4 ?
I don't think so, but you can install PECL FILTER manually.
Since PHP 5.2.0 [url="http://fr.php.net/manual/fr/filter.filters.valiate.php"]FILTER function[/url] are include into PHP.

This allow you to validate more "simply" and quickly (I've done benchmark but I don't keep the result) variables like IP.

In backend/functions.php find :

// IP Validation

function validip($ip)

{

if (!empty($ip) && $ip == long2ip(ip2long($ip)))

{

$reserved_ips = array (

array('0.0.0.0','2.255.255.255'),

array('10.0.0.0','10.255.255.255'),

array('127.0.0.0','127.255.255.255'),

array('169.254.0.0','169.254.255.255'),

array('172.16.0.0','172.31.255.255'),

array('192.0.2.0','192.0.2.255'),

array('192.168.0.0','192.168.255.255'),

array('255.255.255.0','255.255.255.255')

);



foreach ($reserved_ips as $r)

{

$min = ip2long($r[0]);

$max = ip2long($r[1]);

if ((ip2long($ip) >= $min) && (ip2long($ip) <= $max)) return false;

}

return true;

}

else return false;

}
simply replace by :


function validip($ip) {

if (filter_var($ip, FILTER_FLAG_NO_RES_RANGE)) {

return true;

} else {

return false;

}

}





If you want to filter IPv4/IPv6, you can check it with this code :



function validipv6($ipv6) {

if (filter_var($ipv6, FILTER_FLAG_IPV6, FILTER_FLAG_RES_PRIV_RANGE)) {

return true;

} else {

return false;

}

}

function validipv4($ipv4) {

if (filter_var($ipv4, FILTER_FLAG_IPV4, FILTER_FLAG_RES_PRIV_RANGE)) {

return true;

} else {

return false;

}

}





Be carefull there is a little bug in PHP 5.* and PHP 6 and compatibility with ipv6 :

[url="http://bugs.php.net/bug.php?id=47435"]http://bugs.php.net/bug.php?id=47435[/url]

This is just a little hack for ip validation, but filter php function are very usefull to check integer, string, and POST/GET values...
How much peers?! — 2009-04-21 22:35:58 in General Chat
Your welcome, I try a lot of things for my tracker and it work or not....

It take me arround a year to learn how to do this kind of install with Google as helper  ;)

I give this information for feedback, but I want optain feedback of other people  ;)

for my TT, as I said, the best way to win ressources is to adopt Memcache for coding...

Now my memcache servers are like a 2nd SQL server  :P

I store it, update it, delete it like MySQL do.... But not on the same server  :(

[url="https://images.guiks.net/img/audrey.guiks.net_memcached_rates_year.png"][/url]

As you can see, I store more and more item into memcache server... I win a lot with use of memcache Pconnect (number of connection opened)...

By storing messages : SELECT count... on each page...

user info... etc... you win a lot and a lot :D
How much peers?! — 2009-04-21 16:01:01 in General Chat
I run my cleanup each 15 minutes...

My dedicated PHP server are very "little" : Arround 512MB RAM, single core like P4 but a lot :

If one goes down, it's load balanced to another with HAProxy and Round Robin DNS...

I prefer : a lot of cheap server (arround 30 € / month) to 1 big server (arround 200 €/month)

Now, when a tracker is down, my user see nothing....

About the cleanup, I run all the "huge" SQL query directly with BASH and mysql command line...

mysql -u g -ppassword -D dbname -e "DELETE FROM bookmark WHERE userid NOT IN (SELECT id FROM users);" >> /var/log/cleanup/cleanup.log

mysql -u g -ppassword -D dbname -e "DELETE FROM messages WHERE receiver NOT IN (SELECT id FROM users);" >> /var/log/cleanup/cleanup.log

mysql -u g -ppassword -D dbname -e "DELETE FROM peers WHERE unix_timestamp()-unix_timestamp(last_action) >= 21600 LIMIT 5000;" >> /var/log/cleanup/cleanup.log


Query like this with cron each 3 minutes...

For me XBTT is worst : no memcache enable for some things... I can remove/add what I want directly into the code without recompile it...

One of my staff member do this schema...

[url="https://static.guiks.net/images/structtk.png"]Structure Schema[/url]

All my tracker are cheapers dedicated server you can find on leaseweb/OVH... Demand of what we need, sometimes, we try to put tracker on another country to test hosting, bandwidth quality of a hosting service...

Sometimes, one of our tracker server stay down during a week, a month, we let it down because load balancing low cost server do what you need ^^

P.S: Like TS, removing all snatche update let your server very calm ^^

Currently I'm looking just for fun to store Peers table into another MySQL server... Peers table are only called by announce/scrape and we can do some stuff, but need a lot of code before...

mysql_select_db($dbname, $link);
How much peers?! — 2009-04-20 21:02:44 in General Chat
With this hack:

[url="http://www.torrenttrader.org/index.php?showtopic=9873"]http://www.torrenttrader.org/index.php?showtopic=9873[/url]

And 7 dedicated servers for handle announce/scrape I have arround 450K peers each days:

My record : (with freeleech for a week)



On this month :



My MySQL server is a 2x Xeon with 8GB or RAM...

My 7 "dedicated php tracker servers" are on lighttpd....

I use a lot of memcache hack to reduce MySQL load... For example check passkey : passkey "never" change... You can check if it is valid only once a day...
SEO? — 2008-11-04 11:37:07 in General Chat
"DJ Sonik, post: 48243":
Greetings,
Is it possible to have SEO / SEF urls for TT?
I post this : [url="http://www.torrenttrader.org/index.php?showtopic=9052&hl=rewrite"]http://www.torrenttrader.org/index.php?sho...&hl=rewrite[/url]

But for Lighttpd maybe a way for you...
Guides and Tutorials — 2008-08-13 20:06:33 in General Chat
Very nice idea.

I'm french but if you want to take some of my information : [url="https://tools.guiks.net/wiki/"]https://tools.guiks.net/wiki/[/url] (members wiki)
Suggestion — 2008-07-31 13:08:51 in General Chat
"Nikkbu, post: 45039":
i think it would fragment the forum with whole area's ureadable to alot of members....

I'm agrea with Nikkbu. I'm not english and my english sucks. But it's more easy to find and regroup many help with the same lang... If after I find script in deutsh or "east europe language" I don't understand nothing. Charset problem and again and again...

This is a good idea, but this is "also" a problem for the speak...

You can ask your question in english AND in your own language, maybe if someone speak the same, he answers you in the two langage..
Be carefull with the chmod with your file in .txt because if someone modify it, I can put php bad function (shell exec etc..)
I'm passing my torrent trader install (www.) on https, that's work because this is browse by navigator...

But I'm also passing my tracker (tracker.) on https but I don't know witch client are compatible or not...

µTorrent, Azureus work, that's OK.

Transmission since 1.20 work (on debian ETCH, transmission released was 0.96 :/)

BitComet doesn't work (good news, I don't want this client on my tracker  :mellow: )

SomeOne already try an SSL tracker and have any returns ?

Best Regards and I apologize for my english...
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728