TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net General Chit Chat and Feedback reserved IP (IP VALIDATION)

reserved IP (IP VALIDATION)

2006-05-06 21:50:00
Group: Member
Posts: 12
Topics participated: 7
Topics started: 1
First post: 2006-04-30 05:11:00
Last post: 2007-02-13 12:29:00
IN FILE: include/bittorrent.php

you will find the following code:

 
2006-05-06 22:21:00
Group: Member
Posts: 510
Topics participated: 277
Topics started: 5
First post: 2006-03-13 22:18:00
Last post: 2006-10-25 20:54:00
please let me know what you guys think.


I think you're the only person that actually checked that iana link above to see if the old function was completely ok ;)
 
2006-05-06 22:59:00
Group: Member
Posts: 12
Topics participated: 7
Topics started: 1
First post: 2006-04-30 05:11:00
Last post: 2007-02-13 12:29:00
I think you're the only person that actually checked that iana link above to see if the old function was completely ok ;)



the only reason that i checked was because i am attempting to do a complete rewrite of the tbdev script (with a few mods here and there). i am attempting to have the most efficient code in terms of security, cpu usage, and php4 coding standards according to the php manual and what php zend studio tells me.

so back to the question at hand, which array should i use? the default one, or the one i posted?

thanks for any input.
 
2006-05-06 23:04:00
Group: Member
Posts: 510
Topics participated: 277
Topics started: 5
First post: 2006-03-13 22:18:00
Last post: 2006-10-25 20:54:00
attempting to have the most efficient code in terms of security, cpu usage


Why is everyone trying to do te same stuff i do ;( :P j/k ;)

Well both arrays aren't that big so you prolly won't notice that kind of stuff in parse time, but i'm not using any of them.

my getip function is just a straight 'return $_SERVER['REMOTE_ADDR'];'. Don't really see the point of checking forwarded_for headers since you can't be sure that one is valid anyway.
 
2006-05-06 23:24:00
Group: Member
Posts: 12
Topics participated: 7
Topics started: 1
First post: 2006-04-30 05:11:00
Last post: 2007-02-13 12:29:00
i didn't know you had already started a project with the cpu/security otherwise i would have started from your source, but i already started using the virgin TBDEV.NET Source 12-09-05

i added a few mods that are specific to the site i plan on starting. don't worry, its entirely unique. so it won't be a copy of any other torrent site. or at least none i have ever seen.

this function basically blocks site access from the ips in those arrays, am i wrong? if im correct, editing this array would be a nice way of securing your site a little better. simply add government agencies into this array.

also, does anyone know how to get the ip address of someone behind a firewall? because the virgin tracker source returns my ip as that of my router (192.168.1.1) and thus makes me UNCONNECTABLE.
 

Similar threads

Topic Posts Last post
Email Validation 5 2008-09-08 10:30:00
Validation e-mails 1 2007-10-01 12:20:00
Pincode validation Mod 7 2008-09-23 14:09:00