Kikisss Posted March 4, 2009 Report Share Posted March 4, 2009 Varētu lūdzu iedot kādu skriptu kas uzreiz kā tiek izmantot ziņo man ip no kuras tas tiek darīts? Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 4, 2009 Report Share Posted March 4, 2009 <?php echo $_SERVER['REMOTE_ADDR']; ?> protams, ja gribi dabut pracizak, tad biku sarezgitak Quote Link to comment Share on other sites More sharing options...
Kikisss Posted March 4, 2009 Author Report Share Posted March 4, 2009 <?php echo $_SERVER['REMOTE_ADDR']; ?> protams, ja gribi dabut pracizak, tad biku sarezgitak Bet piem es dodu skriptu un kā viņu izmanto tā uz manu db pienāk ip adrese kurā tas skripts tiek lietots! Tip lai izvairītos no tā ka dalās ar viņu. Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 4, 2009 Report Share Posted March 4, 2009 Ja tu dot skriptu, tad jau vinu vares partaisit Ja tu gribi dot, linku uz kadu skriptu, tad sava skripta ari veic ierakstu, kad notiek action, bet ja negribi, lai citiem iet tavs skripts izmanto htaccess Quote Link to comment Share on other sites More sharing options...
Kikisss Posted March 4, 2009 Author Report Share Posted March 4, 2009 Doma bija tāda ka es index failam piemetu klāt skriptu kas aizsūta man ip kuru lieto users Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 4, 2009 Report Share Posted March 4, 2009 nesaprotu vienkarshi gribi zinat, no kadam IP nakushi uz tavu lapu? Quote Link to comment Share on other sites More sharing options...
Kikisss Posted March 4, 2009 Author Report Share Posted March 4, 2009 Dohh :D Tātad - Es iedodu skriptu Users lieto skriptu Man saglabājas DB Viņa IP Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 4, 2009 Report Share Posted March 4, 2009 nezin, kas tev par uber skriptu ka saprast "iedod skriptu" kads novelk no tavas majas lapas to skriptu un lieto? Quote Link to comment Share on other sites More sharing options...
Kikisss Posted March 4, 2009 Author Report Share Posted March 4, 2009 Tu mani nesaproti :D es iedodu webu draugam (kaut vai caur skype) Viņš viņu uzliek uz sava servera! Es saņemu VIŅA IP savā DB Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 4, 2009 Report Share Posted March 4, 2009 tad skripta caur soketu jakonkte klat tavam serverim vai kads ajax pieprsijums uz to javeic ps. liekas kaut kads marazms Quote Link to comment Share on other sites More sharing options...
Kikisss Posted March 4, 2009 Author Report Share Posted March 4, 2009 Caur php to nevar? Quote Link to comment Share on other sites More sharing options...
cucumber Posted March 4, 2009 Report Share Posted March 4, 2009 labi ja tev sockets un ajax request neko neizsaka, tad bus gurti tev ko pastastit Quote Link to comment Share on other sites More sharing options...
Kikisss Posted March 4, 2009 Author Report Share Posted March 4, 2009 A kādu vieglāku risinājumu vari ieteikt kā uzzināt kur tā lapa stāv? Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted March 4, 2009 Report Share Posted March 4, 2009 ieliec kaut kur mazītiņu tekstu, unikālu. pēc kāda mēneša paprasi googlei kur ir tas mazītiņais teksts. Quote Link to comment Share on other sites More sharing options...
Cill Posted March 5, 2009 Report Share Posted March 5, 2009 (edited) <?php mysql_connect('tava_mysql_servera_ip_adrese', 'db_login', 'db_parole'); mysql_query('use bazes_vards'); mysql_query('insert into tabulas_vards (`IP`) values("'.$_SERVER['REMOTE_ADDR'].'")'); ?> Sito kodu baz ieksa un uz prieksu. Parliecinies ka tavs mysql serveris ir pieejams no interneta un ari ierobezo "db_login" usera tiesibas lai vareja tikai viena tabula un tikai rakstit. Risinajums ir sudigs, bet ideja pati par sevi ir sudiga. Lai veicas. Edited March 5, 2009 by Cill Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.