- This topic is empty.
-
AuthorPosts
-
May 14, 2016 at 8:06 am #241602
I.m.learning
ParticipantI really wish sites could just explain in plain English what this tag does.
1- Do I really need this if I only have one page for each topic?
2- If I do use one, can I just put my main index page as the link?
Robots.txt:
Do I need one, or just a robots meta tag?May 14, 2016 at 8:45 am #241604Beverleyh
Participant- No – you only need them when you have duplicate content, to tell search engines which is the dominant/preferred page.
-
It depends if the page it is on contains content that mainly appears on the home page, otherwise no.
More info: moz.com/learn/5eo/canonicalization
Robots.txt: According to moz.com, noindex meta tags are preferred – moz.com/learn/5eo/robotstxt
(TIP: change the ‘5’ to an ‘s’ before copying the links into a browser)
May 14, 2016 at 9:14 am #241606I.m.learning
ParticipantI’m good on the canonical now; PHP is taking care of that for me.
When I started this website 2 months ago, I really had no clue what I was doing. Now I am spending the day making EXTREME changes. With that comes more research that is truly confusing me.
As far as the robots, my concern is the files my host provides as defaults:
bin, etc, logs, mail, ssl, tmp, & access-logs
I truly don’t know what [ALL] these files are for and don’t use them for my own content. But, I don’t know if I should disallow them. I don’t even know if robots access these files.
As I said, my content is limited, but when I start adding DBs and cookies, this may be important.
I also have public_ftp and public_html…seems obvious NOT to block these ones.
May 14, 2016 at 9:49 am #241609Beverleyh
ParticipantNo need to worry about the folders above/outside of your public_html one (the main/root folder where your website lives). They aren’t publicly accessible (or shouldn’t be) – your web host will have taken care of security on those.
May 14, 2016 at 10:14 am #241619I.m.learning
ParticipantMy post was discarded:
My issue was seeing Yahoo.com disallow includes and bin.
I am using PHP for includes and know I have a bin folder. That is why I asked.
I talked to name.com and they mentioned daily monitoring for security threats, especially when it comes to DBs.
No one can access the DB outside the CPanel, but have heard about SQL injections. Right now, I do not have any forms, or databases, but know I should be using something like
htmlspecialchars.This is a long way off, but figured, since I am going to be spending the next few days cleaning my code; it gives an opportunity for people to post their opinions on the matter.
May 15, 2016 at 11:01 pm #241639Ilan Firsov
ParticipantRight now, I do not have any forms, or databases, but know I should be using something like htmlspecialchars.
You should be using prepared statements rather than escape-voodoo
May 16, 2016 at 7:15 am #241657I.m.learning
Participant@Ilan Firsov
Yeah, I was going to look at that later. I saw a video about SQL injection while I was doing some research for UTF-8. The guys at computerphile mentioned something about that.My PHP knowledge is a LOT rusty. But was going to look at that or JS for changing content ion some of my pages.
Thank you for reminding me!
May 16, 2016 at 7:16 am #241658I.m.learning
Participantnothing
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.