autly Posted July 30, 2007 Report Share Posted July 30, 2007 Kā es varētu aizsragāt šo scriptu: links Scripts domāts kā news publishing, viss strāda, bet vajag aizsargāt, to diemžēl es nemāku. Tapēc nāku prasīt palīdzību šeit :) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted July 30, 2007 Report Share Posted July 30, 2007 1. variants Login skriptinsh & pasha failaa parbaude ... vai esi ielagojis 2. HTTP acees file.... respektiivi aisardziiba servera pusee ... par abam lietaam ir runaats Ljoti dadz --> meklee tepat forumaa.... Link to comment Share on other sites More sharing options...
MC_ Posted July 30, 2007 Report Share Posted July 30, 2007 (edited) Ieliec config failaa: if ($_SERVER['PHP_AUTH_USER'] != 'superuser') { header('WWW-Authenticate: Basic realm="Usr/Psw"'); header('HTTP/1.0 401 Unauthorized'); echo 'unauth'; exit; } Edited July 30, 2007 by MC_ Link to comment Share on other sites More sharing options...
Recommended Posts