my site just got hacked.
I have a site where user can upload photo.
in my httpd.conf file.
I use
It works fine for most users.
But for for some reason, some hacker still be able to access this folder.
He uploaded a gif file which contains php codes and execute it
http://mysite/photo/123.gif
and my site get hacked.
I guess he use some software to bypass apache.
Also weird thing is : I can not find the log from the apache access log.
But I can see it in the error log, because there are some php warning error .
So 2 things:
1) how to block the photo folder completely. it looks like if user use browser, he got blocked. but if he use some software, he can access. any software can do this?
2)how come there is not server log in access_log? any software can do this?
I have a site where user can upload photo.
in my httpd.conf file.
I use
Quote:<Directory /var/www/html/photo>to block access to photo folder directly.
Order Deny,Allow
Deny from All
</Directory>
It works fine for most users.
But for for some reason, some hacker still be able to access this folder.
He uploaded a gif file which contains php codes and execute it
http://mysite/photo/123.gif
and my site get hacked.
I guess he use some software to bypass apache.
Also weird thing is : I can not find the log from the apache access log.
But I can see it in the error log, because there are some php warning error .
Quote:[error] [client 113.1.1.1] PHP Warning: Unexpected character in input: '\x01' (ASCII=1) state=0 in /var/www/html/photo/123.gif : eval()'d code on line 1, referer: site.com
So 2 things:
1) how to block the photo folder completely. it looks like if user use browser, he got blocked. but if he use some software, he can access. any software can do this?
2)how come there is not server log in access_log? any software can do this?



![[Image: lPQX27G.png]](https://i.imgur.com/lPQX27G.png)