So someone hacked my website. Now my website looks like shit, how can get his IP?.
[editline]([/editline]
Or prevent it from happening again?.
What type of web server are you using? If you're using Apache, you could try mod_security to prevent attacks.
You should be able to get their IP from an access log if you keep one.
Additionally, if you're using Apache, make sure your .htaccess is set up to forbid access to any other files than webpage files (like php or html).
Also, if you're on a linux server, set your website folder's permissions to 640 (chmod 640 <path to root of website>)
That should prevent more simple attacks (the above steps won't help if the culprit [b]really[/b] wants to fuck up your site)
Check the access logs (if they exist) for the IP of the offender.
Can you still FTP in?
[editline]10:44PM[/editline]
I set my server to dump the raw access logs in the root.
Sorry, you need to Log In to post a reply to this thread.