last day (14 days later) » 

7:23 PM
1
A: Can the following .htaccess rules prevent this attack?

tdammersYou should be fixing the code that causes the problem, rather than throw stuff at it and hope it blocks the malicious stuff. Your .htaccess blocks access to /proc, which is good, but it's not the only thing you want to protect. Blacklisting like this won't get you far, as there are dozens of othe...

 
First of all thank you for your generous and long answer. It is now a bit more clear that my code needed to be sort out. However it is a huge job for me and I am not sure if I have a money to ask anybody. However I try to do my best step by step. Hope I will still fast enough before someone will find me again.
My issue is I don't know where the attack came from and which bit should I fix first.
php.ini: I've got register_globals and magic_quotes off for a start
the site really don't need any file/folder writing as I don't have upload and writing function. I only work in the DB. This would assume that I could change the /public_html/ folder to 711 so I can do everything and others can execute files. Am I correct? thanks
@ Hendrik Brummermann yes you are right, however I need to find the root and I am not that clever yet. So I am searching the solution meanwhile I try to cover the obvious holes so I can work on the code then, but I don't know how to find the hole in my code yet. Therefore appologise for the same question but php.ini and .htaccess would be the easiest and fastest Temporary solution I believe
 
@Andreas: 711 is too broad. Why does the web server need write access? Why does anyone except the web server need any access at all?
 
thanks for the help so what would you recommend?
 
if the web server owns the files, 700 or 500 should be enough.
 
thanks I am going to try them out see if this works in my case. Thanks again. What would you recommend for the files permissions?
Hi I tried with 500 and 700 the /public_html/ folder but I could not open a file after it. I guess I do something wrong.
 
7:23 PM
Who owns the file? Which group is the file in? Under which user did you try? Under which user does apache run? What groups are the users in?
 
Hi
thanks for helping me
so I rent the host from Heartinternet (ISP)
from this point I am not sure who is the owner of the folder
however I can change chmod on files
and folders
the only way I could run my website was to use 505 on the folder
with 500 and 700 I didn't have permission to browse the folder
wit the webrowser:)
Is this sort of answer for the question?:) sorry being really dummy
ah, and I forgot to mention that all my files are 644
I am sorry if I disturbed you.
I shall leave now...
 

last day (14 days later) »