neprasa Posted November 12, 2006 Report Share Posted November 12, 2006 ko vajazetu ievero pie auksuplades skripta kurs lauj auksupladet tikai video! un ka uztaisit- ja faila varda ir sex,xxx vai vel kads vards tad to video neauksupladee Link to comment Share on other sites More sharing options...
black Posted November 12, 2006 Report Share Posted November 12, 2006 Skaties, ka kāds nepamanās uploadēt php, cgi, exe vai kādas citas muļķības. Ja tādu PHP failu pēc tam pārvietosi kaut kur publiski pieejamā vietā zem webroota, ej nu sazini, kas var notikt... Par XXX - labāk uztaisi, lai lapas lietotāji var vērtēt katru video (ti, flag as offensive links), jo visus variantus kā uzrakstīt p0rn tāpat neizdomāsi. Link to comment Share on other sites More sharing options...
neprasa Posted November 12, 2006 Author Report Share Posted November 12, 2006 bet tapat iespeja samazinas ka auksuplades porn , ka to izdarit? Link to comment Share on other sites More sharing options...
andrisp Posted November 12, 2006 Report Share Posted November 12, 2006 (edited) Pavisam rupji: http://lv.php.net/manual/pl/features.file-upload.php if (strpos($_FILES['faila_name_attribuuts_no_tavas_formas']['name'], 'porn') !== false) { die(); } Edited November 12, 2006 by andrisp Link to comment Share on other sites More sharing options...
Recommended Posts