Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
Mysql 8
What happened?
My website is constantly hacked
Steps to Reproduce
I use this .htaccess in public_html:
<Files ".htaccess">
Order Allow,Deny
Deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
PHP Version
8.3
CodeIgniter4 Version
4.5.5
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
Mysql 8
What happened?
My website is constantly hacked
Steps to Reproduce
I use this .htaccess in public_html:
Permission file is 444
and use this .htaccess in public folder:
I have also used form validation in all my pages and in configs use :
But every day files are uploaded to my public_html:
And they also change my .htaccess file to open the uploaded index.
I don't have any file upload section on my pages either.
Expected Output
Here I am sending you some of the files that are uploaded on my host.
How do I fix this problem?
Anything else?
file_hacked.zip