TheJoey Posted April 16, 2010 Share Posted April 16, 2010 How do i enable my server to accept only certain file types, like .txt and .html only. also i wasnt sure were to post this but how would i go about creating a PKE Quote Link to comment https://forums.phpfreaks.com/topic/198707-accept-certain-file-types/ Share on other sites More sharing options...
TheJoey Posted April 16, 2010 Author Share Posted April 16, 2010 <VirtualHost *:88> ServerName www.blahblah.com DirectoryIndex index.html <FilesMatch ".(html/php)"> Order Allow,Deny Allow from all </FilesMatch> </VirtualHost> i dont think this is right.. Quote Link to comment https://forums.phpfreaks.com/topic/198707-accept-certain-file-types/#findComment-1043079 Share on other sites More sharing options...
TheJoey Posted May 7, 2010 Author Share Posted May 7, 2010 <FilesMatch "\.(html|php)$"> Order Allow,Deny Deny from all </FilesMatch> i have this but its blocking the files that i want to be accepted Quote Link to comment https://forums.phpfreaks.com/topic/198707-accept-certain-file-types/#findComment-1054406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.