Darkangel Posted June 5, 2007 Report Share Posted June 5, 2007 <?php include "connect.php"; // get data that sent from form $date = date("d-m-y---H-i"); $ip = getenv("REMOTE_ADDR"); $host = gethostbyaddr($ip); $sql="INSERT INTO ip(Datum, IP, Host)VALUES('$date', '$ip', '$host')"; $result=mysql_query($sql); mysql_close(); ?> Es netieku skaidriba kape vins nerada citu user pc vardu bet tikai to kuru uz ka stav pats web servers. Link to comment Share on other sites More sharing options...
Val Posted June 5, 2007 Report Share Posted June 5, 2007 no kurienes darbini kodu? Link to comment Share on other sites More sharing options...
Darkangel Posted June 5, 2007 Author Report Share Posted June 5, 2007 Ko tu biji domajis ar to. Ja to kur es vinu turu tad es pagaidam turu vinu uz sava pc kur stav appserv. Link to comment Share on other sites More sharing options...
cucumber Posted June 5, 2007 Report Share Posted June 5, 2007 (edited) Ja to scriptu laid tikai tu, tad tevi ari tikai radis, lokalo adresi. Edited June 5, 2007 by cucumber Link to comment Share on other sites More sharing options...
Darkangel Posted June 5, 2007 Author Report Share Posted June 5, 2007 A ira iespejams izdarit lai rada ari citu cilveku adreses Link to comment Share on other sites More sharing options...
Val Posted June 5, 2007 Report Share Posted June 5, 2007 piesēdies pie citas ip adreses un atver attiecīgo weblapu Link to comment Share on other sites More sharing options...
Darkangel Posted June 5, 2007 Author Report Share Posted June 5, 2007 Ja es no sava piesezos klat tad man parada Dark-19d956c14df Bet ja no citas adreses tad tikai parada vina realo ip adresi Link to comment Share on other sites More sharing options...
andrisp Posted June 5, 2007 Report Share Posted June 5, 2007 Nu tad jau viss ir kedās. Un citām adresēm rādās tikai reālā ip, jo nav reģistrēts attiecīgs dns domēns. Link to comment Share on other sites More sharing options...
Darkangel Posted June 5, 2007 Author Report Share Posted June 5, 2007 (edited) Es vnk velejos ustaisit taka admina paneli kura neviens ieksa netiek iznemot mani un lai nebutu jaraksta nekads login un parole + man ira mdsl un man ip mainas taka es gribeju atrast labaku veidu ka autorizeties. Jo man velak tas vis japarliek uz citu serveri busss. Un tape cereju ustaisit autorizaciju pec pc varda. Edited June 5, 2007 by Darkangel Link to comment Share on other sites More sharing options...
andrisp Posted June 5, 2007 Report Share Posted June 5, 2007 Nu, patiešām neiesaku neko tādu veidot, bet palikt pie klasiskā lietotājvārda un paroles. Link to comment Share on other sites More sharing options...
aldis Posted June 5, 2007 Report Share Posted June 5, 2007 ja grib k-ko saistit ar ip.. tad ip loging.. Link to comment Share on other sites More sharing options...
cucumber Posted June 6, 2007 Report Share Posted June 6, 2007 (edited) .htaccess deny allow neders? Edited June 6, 2007 by cucumber Link to comment Share on other sites More sharing options...
hackerman Posted June 6, 2007 Report Share Posted June 6, 2007 (edited) cucumber, taču pateica, ka mainās ip. Varbūt pamēģini kko tml: Vispirms apskaties ko tev tur parāda: $cname = gethostbyaddr($_SERVER[REMOTE_ADDR]); echo $cname; Un tagad, kad zini kāds tev tas $cname ir, pārbaudi: if($cname == "tavs_cname"){ //raada lapu }else{ echo "suukaa ledu :P"; } p.s. jā, es varu uzlikt tādu pc vārdu, kāds ir tev un ielogoties kā admins. Bet es piem. laužot lapu to neiedomātos, vienīgais, ja būtu tāda jēla sagadīšanās. Edited June 6, 2007 by hackerman Link to comment Share on other sites More sharing options...
Recommended Posts