• REMOTE_ADDR is showing up facebook IP.
    16 replies, posted
Hey, I have set up basically a thing which records all visits to website and the IP's using $_SERVER['REMOTE_ADDR'] apparently when I give link over facebook and user visits it, it shows facebook IP and port. So I assume it's some kind of protection and privacy? is there any way to avoid it? or at least identify facebook user?
Facebook has a proxy? I sent a link to my friend to get his IP and it worked fine for me.
Are you worried about the whole "Anonymous to DrDOS the DNS system" thing? If so you shouldn't bother. If not, what are you using to record the addresses?
[QUOTE=Biotoxsin;35334808]Are you worried about the whole "Anonymous to DrDOS the DNS system" thing? If so you shouldn't bother. If not, what are you using to record the addresses?[/QUOTE] There is a guy in our class he's taking everyone for idiots, he made like 3 fake girl profiles on facebook and keeps writing statuses to his own walls and to ours pretending that they are 3 hot chicks who love him and will do whatever he says. So I suggested iddea for my classmates to prank this guy, I set up quick php code to add visitor IP's to database, so in theory I should get a lot of visits from same IP then I can print the proof and we can compromise him, I know it sounds nasty and kind of like asshole, but I need to do it. And I am using just php code and on visit it adds IP, time, browser and port to mySQL db.
No ones probably clicking on it, its probably just Facebook fetching information about the site for the preview. But seriously, grow up, there's a lot of desperate sad people out there who don't need you to be picking on them. In thinking you should do this you've made yourself look as pathetic as your target. Ignore or block him, who cares what he does.
[QUOTE=Biotoxsin;35336971]No ones probably clicking on it, its probably just Facebook fetching information about the site for the preview. But seriously, grow up, there's a lot of desperate sad people out there who don't need you to be picking on them. In thinking you should do this you've made yourself look as pathetic as your target. Ignore or block him, who cares what he does.[/QUOTE] Apparently there is at least 20 people in course after him, because he just makes everyone look like idiots, he writes to us from these fakes profiles, telling us stuff that we know, those girls even have a pics from some porn site (googled images). He calls us idiots and retards, total gay heads with no life yet can't say anything to him as he claims ("hey it wasnt me, it was her") yet we dont have any physical evidence to compromise him and finish this shit.
If everyone knows its him then you should all do the mature and sensible thing and talk to a school counselor or someone similar and report harassment.
[QUOTE=arleitiss;35337227]Apparently there is at least 20 people in course after him, because he just makes everyone look like idiots, he writes to us from these fakes profiles, telling us stuff that we know, those girls even have a pics from some porn site (googled images). He calls us idiots and retards, total gay heads with no life yet can't say anything to him as he claims ("hey it wasnt me, it was her") yet we dont have any physical evidence to compromise him and finish this shit.[/QUOTE] Why don't you just ignore them and be the bigger man and stop giving a shit?
Be a man and wait him up in an alley with a baseball bat or any other blunt object.
Kiss him on the lips.
[QUOTE=arleitiss;35337227]Apparently there is at least 20 people in course after him, because he just makes everyone look like idiots, he writes to us from these fakes profiles, telling us stuff that we know, those girls even have a pics from some porn site (googled images). He calls us idiots and retards, total gay heads with no life yet can't say anything to him as he claims ("hey it wasnt me, it was her") yet we dont have any physical evidence to compromise him and finish this shit.[/QUOTE] who the fuck does this? this is so weird
[QUOTE=amcfaggot;35381501]who the fuck does this? this is so weird[/QUOTE] That's what loneliness does to you.
That's really weird, i don't really see the point in what you are doing though. Surely if you know its him you dont need any more proof? Anyway its always good to learn so just a suggestion, have you tried something like this? [PHP] function get_remote_address() { $remote_addr = $_SERVER['HTTP_X_FORWARDED_FOR']; if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { // X-Forwarded-For: client1, proxy1, proxy2 $forwarded_for = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); $forwarded_for = trim($forwarded_for[0]); if (@preg_match('%^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$%', $forwarded_for) || @preg_match('%^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$%', $forwarded_for)) $remote_addr = $forwarded_for; } return $remote_addr; } [/PHP] This is what i use for finding user IP's
[QUOTE=Spero78;35387174]That's really weird, i don't really see the point in what you are doing though. Surely if you know its him you dont need any more proof? Anyway its always good to learn so just a suggestion, have you tried something like this? [PHP] -snip- [/PHP] This is what i use for finding user IP's[/QUOTE] just use filter_var, holy fuck filter_var($forwarded_for, FILTER_VALIDATE_IP)
[QUOTE=jetboy;35388599]just use filter_var, holy fuck filter_var($forwarded_for, FILTER_VALIDATE_IP)[/QUOTE] Didn't actually know that existed, Not sure I trust that over RegEx though. quite the time-saver though :p
[QUOTE=Spero78;35388814]Didn't actually know that existed, Not sure I trust that over RegEx though. quite the time-saver though :p[/QUOTE] You don't have to trust it blindly, PHP is open-source: [url]http://lxr.php.net/opengrok/xref/PHP_5_4/ext/filter/filter.c[/url] Which references the < [B]void[/B] [I]php_filter_validate_ip[/I] > function: [url]http://lxr.php.net/xref/PHP_5_4/ext/filter/logical_filters.c#php_filter_validate_ip[/url]
[QUOTE=arleitiss;35334629]Hey, I have set up basically a thing which records all visits to website and the IP's using $_SERVER['REMOTE_ADDR'] apparently when I give link over facebook and user visits it, it shows facebook IP and port. So I assume it's some kind of protection and privacy? is there any way to avoid it? or at least identify facebook user?[/QUOTE] Why are you mad though?
Sorry, you need to Log In to post a reply to this thread.