Page 1 of 1

How to hide..

Posted: Tue Jul 07, 2009 11:39 pm
by sirimallamurali
Hi everybody,

I have developed a webportal using php. In this i m using one folder called script for all phpscripts. when i run this site on internet like http://www.example.com after opening this site if i click on any one link then the url redirecting to that linked script like http://www.example.com/script/ss.php its working fine. But when i erase the ss.php from url then it looks like http://www.example.com/script/. when i press enter then its displaying all script files under this folder.. so how can i hide this....

Thanks and Regards,
KK

Re: How to hide..

Posted: Tue Jul 07, 2009 11:50 pm
by requinix
Apache server?

Code: Select all

Options -Indexes
Put that in script/.htaccess

Re: How to hide..

Posted: Tue Jul 07, 2009 11:58 pm
by sirimallamurali
please can u give example code for that..

Re: How to hide..

Posted: Wed Jul 08, 2009 12:42 am
by requinix
I did.

Re: How to hide..

Posted: Wed Jul 08, 2009 12:45 am
by pcoder
haha You already got the code from tasairis
:)