Devils666 Posted March 22, 2010 Report Share Posted March 22, 2010 (edited) order allow,deny deny from all Ja folderi ir tikai php faili, tad jau skaidrs, bet ja es gribu liekt pieeju folderim, kura iekša ir css un php faili? (mēģinu atrast veidu, kā aizsargāt css/js failus) var būt kāds var ieteikt kādu labu variantu, kā to izdarīt? Edited March 22, 2010 by Devils666 Quote Link to comment Share on other sites More sharing options...
marcis Posted March 22, 2010 Report Share Posted March 22, 2010 http://httpd.apache.org/docs/2.0/mod/core.html#files Quote Link to comment Share on other sites More sharing options...
Devils666 Posted March 22, 2010 Author Report Share Posted March 22, 2010 es jau kādu stundu lasu visādus manuāļus, bet tāpat nekas nav sanācis Quote Link to comment Share on other sites More sharing options...
marcis Posted March 22, 2010 Report Share Posted March 22, 2010 <FilesMatch "\.php$"> Order Allow,Deny </FilesMatch> Quote Link to comment Share on other sites More sharing options...
Devils666 Posted March 22, 2010 Author Report Share Posted March 22, 2010 (edited) <FilesMatch "\.php$"> Order Allow,Deny </FilesMatch> nu, tā jau es mēģināju, bet negaja ka vaig: <link rel="stylesheet" type="text/css" href="style.css" /> to failu paslepj no lietotajiem, bet ari neatver pats serveris, ieladejot lapu bet esu rezdējis, ka citi saviem css failiem ir liegusi pieeju no lietotaja puses, bet serveris to failu var paradit Edited March 22, 2010 by Devils666 Quote Link to comment Share on other sites More sharing options...
php newbie Posted March 22, 2010 Report Share Posted March 22, 2010 kā tad klients bez CSS pareizi atspoguļos lapu? Kaut kadā veidā klientam jādabū to css. Vai nu ka linku <link rel="stylesheet" type="text/css" href="style.css" /> Vai nu pa taisno lapas kodā Vai nu pie katra objekta style property. vai nu es kaut ko nezinu :) Quote Link to comment Share on other sites More sharing options...
2easy Posted March 22, 2010 Report Share Posted March 22, 2010 kad tu slēp css, tad pie reizes noslēp arī html, savādāk tas izskatīsies šausmīgi :D:D:D Quote Link to comment Share on other sites More sharing options...
Devils666 Posted March 22, 2010 Author Report Share Posted March 22, 2010 http://www.n1studios.net/tutorials/php/css-file-protection.html okei, ko tad tu teiksi par to? (devil) tikai tas nav 100% tāds kādu gribu, jo ir paris nepilnibas Quote Link to comment Share on other sites More sharing options...
Pentiums Posted March 22, 2010 Report Share Posted March 22, 2010 mož autors domāja liegt direktorija listingu? htaccess: Options -Indexes Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted March 22, 2010 Report Share Posted March 22, 2010 Ko noziimee aizsargaat js un css failus? Tie faili buus vienmeer redzami, ja vien gribi, lai tev raadaas lapa. Quote Link to comment Share on other sites More sharing options...
Devils666 Posted March 22, 2010 Author Report Share Posted March 22, 2010 es gribu panākt to, lai lietotājs tik vienkārši nevarēdu apskatit css failu, kā gribētos, lai tādi copy/pasteri to daritu citur, bet serveris to failu nolasīt varetu Quote Link to comment Share on other sites More sharing options...
marcis Posted March 22, 2010 Report Share Posted March 22, 2010 (edited) Ai, nu cik var runāt par šito... Pameklē tepat forumā - tas nav izdarāms. Protams, procesu var censties maksimāli sarežģīt, bet nevar pilnībā noslēpt. Par tavu linku - līdz ko atver index.php tā arī vari tik klāt visiem css'iem :) Edited March 22, 2010 by marcis Quote Link to comment Share on other sites More sharing options...
2easy Posted March 22, 2010 Report Share Posted March 22, 2010 (edited) http://www.n1studios.net/tutorials/php/css-file-protection.html okei, ko tad tu teiksi par to? (devil) tikai tas nav 100% tāds kādu gribu, jo ir paris nepilnibas labākajā gadījumā tas ir protection tikai for noobs kas nerubī, kā to apiet, tiem anyway nemaz neinteresētu tāds css un tie pat var nenojaust par tāda zvēra eksistenci. taču tie, kas zin kko vairāk un kam interesētu apskatīt tavu css, tie būs arī pietiekami gudri, lai apietu šādu "aizsardzību" :D:D:D kr4 kā prikols tas ir ok, taču reāls ieguvums ir 0 Edited March 22, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
Devils666 Posted March 22, 2010 Author Report Share Posted March 22, 2010 hmm, nu ok, un ka viņu var maksimāli sarežģīt? lai kurs katrs nevaretu copy/paste Quote Link to comment Share on other sites More sharing options...
2easy Posted March 22, 2010 Report Share Posted March 22, 2010 NEVAR un punkts. 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.