News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

.htaccess and php.ini

Started by Joazo, January 28, 2011, 04:48:27 AM

Previous topic - Next topic

Joazo

Hello,

1. I added this to my php.ini for improve security of my forum:
allow_url_fopen=off

disable_functions = proc_open , popen, disk_free_space, set_time_limit, leak, tmpfile, exec, system, shell_exec, passthru


Can it cause any problem to the forum?

2. What is Mod Security and how can I enable it on my forum?

3. Does SMF forum using Perl scripts?
I want to add this to my .htaccess for more security:
##Deny access to all CGI, Perl, Python and text files
<FilesMatch "\.(cgi|pl|py|txt)">
Deny from all
</FilesMatch>
##If you are using a robots.txt file, please remove the
# sign from the following 3 lines to allow access only to the robots.txt file:
#<FilesMatch robots.txt>
#Allow from all
#</FilesMatch>


It won't cause any problems?

Kind Regards,
Joazo


Masterd


Joazo

Ok what about 1. and 3. please

Angelina Belle

3. SMF is written in Php.  It does not use Perl scripts.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Advertisement: