How do block a particular file extension ?
If I have a files names with extension .fun which contain various functions then what do I have to do so that when someone enters xxx.fun it'll not appear ?
Other than in localhost, how'll I do in my host ?
Thanks
Thats true but I wanted to differentiate b/w php files and my include files so that it'll be easier for me for oranization. In IIS6 all file extensions except html,htm,asp,aspx etc are blocked unless we add them as we do for php. But hows that done for Apache and esp on a host ?
I've already made a site with lots of .fun and lots of .php pages calling .fun files. Plus there are some .include files which do output. Changing all those extensions and all the files calling those include files is tedious. Anyway to stop .fun from loading as in IIS6/5.1. Since Im using IIS5.1 which doesnt allow you to type in just any extension I got used to it.
How abt .inc files ? I just tested one inc file and Apache seems to be parsing it as php as the php code of the inc file didnt show up - the output did. Is it standard ?
apache will only parse files with .php (or php3?) by default. There are various means you can use to cblock other files either by attempting to parse them or refusing to serve them. IF you look through your httpd.conf file, there should be some comments in there explaining what you need to do.