Jump to content

[SOLVED] Allow / Deny files.


Recommended Posts

Hello all, i was wondering if there is an htaccess command that would allow me to allow all files that are like the following (with % being wildcard) :  %_class.php to be uploaded via ftp and deny all others. Is that possible? basically i want to write a dir reader to include all files in the classes dir and auto make a new class() for each one just by parsing out the _class.php at the end. I have that part, but if somehow like ok.php or what.jpg etc ends up in the classes dir, it craps out.

 

I could just do some checking in the php, but i figured i'd take the opportunity to learn some more about htaccess.

 

Thanks :)

 

Link to comment
https://forums.phpfreaks.com/topic/164522-solved-allow-deny-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.