So yes Im another person who is new to .php and I got hacked, the executed the php file thru linking my php to one of their sites hosting the trojan and executed it and then upped the torjan then were able to edit my index page and uplaod files like movies and stuff as well as some other programs.
Today my tech support ppl told me they used my account to attack other accounts as well. I removed all the stuff they uploaded and notifited the administrators about the hack they used. They told me the whole server couldnt be compromised they use firewalls and good security and only my account on the server would be. I read another post on this forum of a person who got hacked same way and some people replied that the whole server could be compromised, so are my tech ppl bullshiting or not? They are a big hosting company by the way.
So I have learned that I should put the following line in my page:
Set allow_url_fopen = off
I wish to know tho should this line be put into every .php page on my website or only the main index.php in which the rest of my .php pages open, also is there a certain place this would go or anywhere on the page really?
Also this is the code I use to call my other .php pages to the index.php in which the rest of my pages show. Please tell me if I should change this code in any way to make it more secure. I really dont know anything about .php I had the page made for me by a someone a long time ago who I no longer have contact with so thats why I need this help. Here is the code:
<?php if($id == "") { include("home.php"); } else { include("$id.php"); } ?>
so the code is pretty simple as you can see, default is the home.php inside my index.php or when i hit other links it goes to the specific id.php
also after talking to my tech guys some more they are telling me the fopen line requires a dedicated ip address can anyone explain to me what thats all about as well? they gonna make me pay extra for it. they say you need a port open for fopen, which is only open on dedicated IPs is that true?
If anyone can help me out with few of these answers I would really appriciate it. Trying to learn to not get hacked again and as you can tell I need all the info I can get.