Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-21-2005, 02:42 PM Homepage hacked...
Ultra Talker

Posts: 358
Location: Devon, UK
Trades: 4
Hi,

I got home from work this morning to find that my index.php had been 'hacked' and replaced with a load of junk.

The original code was in a file called something like 'localdata.php' and was all intact.

All that was in the php was a redirect header to redirect to a sub-dir, which was all still there and had no problems.

Just wondering if anyone can shed any light on what they think happened and more importantly how to stop it happening again. Is it something I can do or will it be down to my host? I use a VPS with 'Power VPS' who have been very good.

Is there any way I can protect the code, it's literally 2 lines but it's not nice to see your index page trashed!

TIA
Simon
recedo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-21-2005, 03:45 PM
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Would be easier to say with a reference - unlucky mate I know the feeling :-(
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 12-21-2005, 03:57 PM
Ultra Talker

Posts: 358
Location: Devon, UK
Trades: 4
Well, the site is http://www.notsounknown.co.uk. The index.php page only contains this code;

PHP Code:
<?
header
("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.notsounknown.co.uk/nsu");
exit();
?>
I have not kept the code that was left when it had been 'hacked'. I say 'hacked' becuase I'm not sure if it was hacked or if it was just some sort of server problem. One of my users emailed me to tell me that the site had a message saying that it had been hacked, when I visited it there was no message, just a load of junk characters.

Everything is back to normal now, I just want to make sure I'm protected in the future. I'm trying to figure out what backup options I have with CPX. I usually only backup to my local machine once a month or so as the site is quite large.

Simon
recedo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Homepage hacked...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11241 seconds with 12 queries