How To Stop Being Hacked?

Discussion in 'General Chat' started by glendowney, Oct 3, 2008.

  1. #1
    I've being hacked twice in three days by the same people.

    They come from turkey and said there hacking me because of this:

    'look! I'm not bad people but england is turkish enemy so i deface your site and england sites...'

    Really getting annoying now, I've got the latest backup of the site but I hate having to keep uploading it.

    How are they hacking my site, this is the first time i've ever had a site hacked.
     
    glendowney, Oct 3, 2008 IP
  2. Matt B

    Matt B Active Member

    Messages:
    1,350
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    90
    #2
    You'll have to give us a bit more information than that.

    Have you reported it to your hosting provider?
     
    Matt B, Oct 3, 2008 IP
  3. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Yeah, the first time it happened I sent in a support ticket and they just said to re-upload everything.

    Just sent in another one asking if there is anyway to stop being hacked, just waiting for a reply.

    I hate giving links to my website, but the site is www.michaelowen.net
     
    glendowney, Oct 3, 2008 IP
  4. Matt B

    Matt B Active Member

    Messages:
    1,350
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Do you usually run some sort of CMS, for example Wordpress?

    If so, are you making sure you're using the latest version?

    Have you changed your passwords? Don't use the same pass for everything and use strong passwords that include numbers and special characters such as "!".
     
    Matt B, Oct 3, 2008 IP
  5. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #5
    Yeah its run on wordpress, and its 2.6 version.

    The password is generated by wordpress when I install it so is pretty hard to crack.
     
    glendowney, Oct 3, 2008 IP
  6. Matt B

    Matt B Active Member

    Messages:
    1,350
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    90
    #6
    Do you use a lot of different plugins?

    Might be worthwhile disabling them for a while when you put the site back up.
     
    Matt B, Oct 3, 2008 IP
  7. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #7
    Nope, only got two, but I will disable them anyhow when its back up, just wait to see what my host says as well.
     
    glendowney, Oct 3, 2008 IP
  8. jonathon

    jonathon Well-Known Member

    Messages:
    523
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Are you using the google sitemap maker, if so remove the CHMOD from 777 to 644 and do the same with any other plugins, that how they hack you site.

    and use this .htaccess on your admin folder:
    and this one for your wp-content folder.
     
    jonathon, Oct 3, 2008 IP
  9. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #9
    Thanks, i don't have a sitemap yet, but the plugins were set to 777, i'll change them and see if that does anything.

    I'll add the .htaccess files, but what do they actually do?
     
    glendowney, Oct 3, 2008 IP
  10. danger9918

    danger9918 Well-Known Member

    Messages:
    1,612
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #10
    They will only allow you ip address to access the admin panel and deny all other ip address's from accessing it.
     
    danger9918, Oct 3, 2008 IP
  11. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #11
    When I add the .htaccess files to the wp-admin folder and the wp-content folder it stops me from logging into wp-admin
     
    glendowney, Oct 3, 2008 IP
  12. Matt B

    Matt B Active Member

    Messages:
    1,350
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    90
    #12
    Are you using the correct IP address?
     
    Matt B, Oct 3, 2008 IP
  13. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #13
    Yes. The .htaccess file I uploaded into wp-content is fine, its just the one for the wp-admin thats playing up
     
    glendowney, Oct 3, 2008 IP
  14. jonathon

    jonathon Well-Known Member

    Messages:
    523
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #14
    Remove the ( ) so it just look like this

    order deny,allow
    allow from 666.66.666.66 # This is your static IP
    deny from all 
    Code (markup):
    If you don't have a static IP just use the number that stay the same like 195.90.***.**
     
    jonathon, Oct 3, 2008 IP
  15. bordello

    bordello Notable Member

    Messages:
    3,204
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    290
    #15

    What if some one have dynamic ip?

    Thanks
     
    bordello, Oct 3, 2008 IP
  16. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #16
    allow ISP IP range ^_^
     
    chandan123, Oct 3, 2008 IP
  17. Matt B

    Matt B Active Member

    Messages:
    1,350
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    90
    #17
    Use a wildcard ;) (*)
     
    Matt B, Oct 3, 2008 IP
  18. glendowney

    glendowney Notable Member

    Messages:
    5,925
    Likes Received:
    198
    Best Answers:
    0
    Trophy Points:
    210
    #18
    ok, whats a wildcard lol ?
     
    glendowney, Oct 3, 2008 IP