![]() |
How to not get JS, CSS, Image Folder - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to not get JS, CSS, Image Folder (/showthread.php?tid=52223) |
How to not get JS, CSS, Image Folder - El Forum - 06-01-2012 [eluser]Nguyen Trung[/eluser] Hi Everybody ! I have 3 folder are Js, Css and Image I can get Url localhost/project/js/jquery.js But when i type : 'localhost/project/js' , It shows all .js file. Let's help me !! I don't want show all file . Thanks all !! How to not get JS, CSS, Image Folder - El Forum - 06-02-2012 [eluser]Oscar Dias[/eluser] One way is to copy the index.html file from the application folder into your folders. It contains: Code: <html> How to not get JS, CSS, Image Folder - El Forum - 06-02-2012 [eluser]CroNiX[/eluser] Or turn directory listing off in your htaccess or server settings How to not get JS, CSS, Image Folder - El Forum - 06-03-2012 [eluser]Nguyen Trung[/eluser] Thanks Oscar and CroNix, I have do, they's good! @CroNiX : Can you tell me understand (sorry i write english so bad.), or give me example code !! Thanks you! How to not get JS, CSS, Image Folder - El Forum - 06-03-2012 [eluser]Cristian Gilè[/eluser] http://www.google.it/search?q=prevent+directory+listing+using+.htaccess |