Quote from RebeccaBlack;876934:
1. Does it matter where I get my domain name? Are there any tricks to the "cheap" hosts that sell you domains for a dollar or two a year for a .com compared to a site like Godaddy that might charge quite a lot more? Or is it all related to the hosting tools/services they give you? Is there anywhere/anything you'd recommend? I'm going to be looking for a standard .com domain name and I suppose pretty basic hosting tools. I'll look into the hosting part myself.
Not really. Many hosting providers even include a subdomain off of one of theirs free of charge.
Though it is considered a more established or more serious project if you do buy a domain name for it, which shows that you're investing not only your time into building it.
Biggest thing to remember with hosting though is that bigger/cheaper does not imply better, in fact in most cases you will find that cheaper hosting or larger plans for the price are in fact inferior because of higher server loads leading to reliability problems.
Quote from RebeccaBlack;876934:
2. I want to make my site as secure as possible. The goal would be to end up with a site that cannot be taken down or messed with by someone who knows what they're doing. I'm not counting denial of service attacks in this because I doubt much can be done about those. What kinda things do I need to look out for? I've heard a bit about SQL injection, but I hardly even know what it is. Besides that, is there anything I really need to worry about? Where can I learn about how to build a very strong and secure site?
SQL injection is nasty. It lets a hacker insert a specifically formed command into a normal user input, causing the server to execute that command to do whatever they like to your site's data. Incidentally such a hack is being used by Mabinogi and Maplestory gold botters now to steal gold and rare items to sell. The solution is to sanitize any and all user input. Most tools automate this by commenting out special characters, effectively breaking SQL injection attacks by invalidating the commands they insert.
Another common attack to beware of is the XSS attack. This takes advantage of certain site structures and insecure file permissions to inject javascript into the site, usually making clients viewing the site do something destructive. Taking care to set the file permissions usually blocks it.
For the most part individual site owners need only worry about those two, and any exploits in any software packages they are using- such as Wordpress and it's regular (but fortunately short-lived) known exploits.
Quote from RebeccaBlack;876934:
3. This is kinda relevant to the second question, but are the emails often provided with these services safe and secure? If the site gets hacked, can the email get compromised along with it?
Many hosts don't even offer incoming email with web hosting on free accounts, because of the risk of those same accounts being used for spam generation or illegal activity. Though some do indeed. For the most part if the site gets hacked the email should still be okay, but if the site goes down because the server got hacked you just lost everything.
Make regular backups, although some hosts do generate internal backups you are still responsible for your own data.
Quote from RebeccaBlack;876934:
4. I already know how to embed a Youtube video and get it the way I like it, make sure it autoplays in HD, etc. How would I make a different one load randomly from a playlist (or selected URLs I enter) every time the user refreshes the page? It can't be too difficult.
5. This next one is a little tricky. Is there a way I could have a box pop up only on certain pages (such as after "entering" the site) where a user would get to choose the background of the site with one option and the music that plays with another? It's a little hard to explain, but kinda like how Nexon did this except replace it with options that, when clicked, stores a cookie (like the 'don't show again' button) and change how the site looks. The goal is to provide a more customizable, personalized experience.
I would have to look this up, but if it's been done once it surely can be done again.
Quote from RebeccaBlack;876934:
6. Can I prevent people from seeing all my directories and stuff? Will a simple redirect stop this? I just don't want all of the content of my site to be easily located. The way I stopped it before was just by making a blank index.html page for every directory.
Usually .htaccess can help with this. You also want to properly configure your robots.txt file so that google and the like only sees what you want them to see. It also is sometimes possible to disable the directory index that appears when an empty folder is accessed. I would have to look up how to do that, as it normally is not necessary.
Quote from RebeccaBlack;876934:
I am probably going to be making the website 100% from scratch with the exception of possibly installing Wordpress on it to use as a blog, so I'll have a great deal of control over everything that goes into it and the vulnerabilities of foreign code won't be as much of a problem.
I know this is a lot, but I'm having trouble wrapping my head around everything and I just want to turn all these ideas into a reality. If I know what to look for and what to read, it'll all be so much easier for me and will give me peace of mind. The biggest problem is I just don't know where to start.
Easiest way to start is jump in. Find a host that offers a small package either for free or for an amount you are comfortable with, upload wordpress, and see what you can do. It's perfectly fine to look things up as you go, although you do take a little more risk security-wise that way you can also avoid that same risk by paying attention to the notes in the documentation. Commands that are know to have security risks usually have notes saying so in the articles about them, along with best practices for use.
Or you could do exactly what you are doing now and talk to people that know a thing or two about it to find out what works and what doesn't. I recommend getting on the IRC, I can answer most of the questions you might have about making websites.
The IRC itself runs on my web hosting servers, I've been in the business for over two years and coding sites even longer than that.
Quote from Osayidan;877267:
I can't really suggest a host though. What you'll want to start with is very cheap, shared hosting (meaning hundreds if not thousands of customers on one server or cluster of servers). I've been using dedicated/virtual servers for too long so I don't know whose good or not anymore. I suggest you use a host that allows you to manage DNS records once you've pointed your domain to them. Any host that doesn't allow you that freedom should go fuck themselves.
Hundreds and thousands? I've honestly yet to see a typical small server run stable with more than 100 or so on it. Most I've ever put on a server is like 20, though I am also using rather small servers.
And definately. It's nice to be able to modify the DNS info as needed rather than being chained to their restrictions. Many hosts even let you use an external DNS for your site, though the configuration becomes slightly more complex this way because you have to manually update it should the host's IP change.