ilikephp Posted April 15, 2008 Share Posted April 15, 2008 Hello !! In my website, how can I restrict users to put: www.myweb.com/english or any othe folder that I have? So Index of /English for example will appear and than all my files will be visible! Is there a way that lets all folders we type next to mywebsite.com gives an error or forbidden? Thxx Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/ Share on other sites More sharing options...
soycharliente Posted April 15, 2008 Share Posted April 15, 2008 You could change the permissions on the all the folders so that they don't have global access. But I'm not sure how it would work if your code is then trying to access them. Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/#findComment-517622 Share on other sites More sharing options...
blackcell Posted April 15, 2008 Share Posted April 15, 2008 You can read up on .htaccess and .htpasswd Anywhere you place the .htaccess file will require a username password contained within the directed .htpasswd file. I think this is what you are trying to achieve anyway. Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/#findComment-517624 Share on other sites More sharing options...
ilikephp Posted April 15, 2008 Author Share Posted April 15, 2008 Ths for your help!! But please can you provide me with more explanation, coz I did not understand u well!! Thxx... Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/#findComment-517626 Share on other sites More sharing options...
blackcell Posted April 16, 2008 Share Posted April 16, 2008 See: http://httpd.apache.org/docs/1.3/howto/htaccess.html Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/#findComment-518134 Share on other sites More sharing options...
ilikephp Posted April 16, 2008 Author Share Posted April 16, 2008 I am really Sorry for asking a lot about this issue! I checked the link and I did not understand anything :S can u give me plz a small example or what can I put inside the file? so only this file can not be accessd when I put it inside the title bar, only when I click in my website on its link. Thnks so much... Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/#findComment-518383 Share on other sites More sharing options...
ilikephp Posted April 16, 2008 Author Share Posted April 16, 2008 it works!!! in my cPanel, I have indexe manager: so inside it I put" no indexes" for the whole folders. Now , Nobody can access my files!! Link to comment https://forums.phpfreaks.com/topic/101194-solved-index-of-english/#findComment-518478 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.