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
[HACK] Https ttv2.x
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-06-09 23:00:35
Earlyer today i decided to make the whole site run via HTTPS

this was the code I used.

Add to Functions.php

function secure_page() 

{

if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) !== 'on' )

{

header ('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);

exit();

}

}
In header.php

where you see <?php at the top add just after




secure_page();



Some problems do come up tho so you need to set the site URL in the config to [url="https://www.yoursite.com/"]https://www.yoursite.com/[/url]  <  I stress the https part.

You can get a SSL certificate from Namecheap.com for $9.99  or if you order Whois Guard you get a free 1 year SSL certificate for $0.99  with the offer code WGspecial or if you transfer or buy a domain you can get a domain for $8.88 with the code SUMMERTIME, with 1 year Whois Guard and a 1 year SSL certificate. (Offers and codes correct as of 9/6/10)
Unknown User
2010-08-21 14:16:42
nice any more info like gaining a certificate would be awsome  ;)  as it makes site more secure so keep the info coming and has anyone tested this yet ???? cheers will watch for new posts in this thread
Unknown User
2010-08-22 00:47:23
What sort of load does this add to the server? We have ssl as an option that members have to manually use it. Just wondering what kinda load this would add to a large tracker.
Unknown User
2011-10-03 21:22:45
It works!   :angry:
Unknown User
2011-10-04 03:42:30
I used to be only https for my staff and higher on my old site.  I did not see much an an load difference actually it was better loading on the https side if the tracker was overloaded, that was normal http.
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728