Skip to content

www. Infront stops website access?

Solved Configure
10 2 1.5k 1
  • Strange thing today, thought my pals nodebb.com site was down, as browser prevented access.
    It gave the your connection is not private security warning (like when theres no SSL)
    But Ive been told issue was that i was using
    www.sitename.nodebb.com
    And should just use sitename.nodebb.com
    !
    Have I missed something, since when did www. stop websites accessing properly?

  • Strange thing today, thought my pals nodebb.com site was down, as browser prevented access.
    It gave the your connection is not private security warning (like when theres no SSL)
    But Ive been told issue was that i was using
    www.sitename.nodebb.com
    And should just use sitename.nodebb.com
    !
    Have I missed something, since when did www. stop websites accessing properly?

    @Panda www these days is typically an alias record in DNS, and isn’t a requirement for the site to function. Most websites (including this one 🙂 ) drop the www part as it’s less for people to type (but it will accept those requests, then strip it back to the actual URL). Only those who have a legacy reason to include www in their website addresses these days do so.

    It’s considered unnecessary in today’s internet landscape. However, if the site presents an SSL certificate mismatch or warning, then this will actually not only harm your SEO (Google penalises against this), but it also means that if you proceed, every transaction on the site will be in plain text - not good at all.

    Furthermore, those sites (like NodeBB) that require a specific URL to operate against won’t work properly because of the mismatch, and that site should then be forcing all non-https traffic to https to ensure that this does not happen.

    Essentially, not doing so isn’t just bad etiquette, it’s bad for overall security. Depending on the host in use (either Apache or NGINX), there are a variety of ways to accomplish this. One of the easiest ways if you use Cloudflare is to do it with a page rule - failing that, a few simple lines of config is all it takes to resolve it.

    A bit more on the whole www part here

    https://dropwww.com/why

  • phenomlabundefined phenomlab has marked this topic as solved on
  • @Panda www these days is typically an alias record in DNS, and isn’t a requirement for the site to function. Most websites (including this one 🙂 ) drop the www part as it’s less for people to type (but it will accept those requests, then strip it back to the actual URL). Only those who have a legacy reason to include www in their website addresses these days do so.

    It’s considered unnecessary in today’s internet landscape. However, if the site presents an SSL certificate mismatch or warning, then this will actually not only harm your SEO (Google penalises against this), but it also means that if you proceed, every transaction on the site will be in plain text - not good at all.

    Furthermore, those sites (like NodeBB) that require a specific URL to operate against won’t work properly because of the mismatch, and that site should then be forcing all non-https traffic to https to ensure that this does not happen.

    Essentially, not doing so isn’t just bad etiquette, it’s bad for overall security. Depending on the host in use (either Apache or NGINX), there are a variety of ways to accomplish this. One of the easiest ways if you use Cloudflare is to do it with a page rule - failing that, a few simple lines of config is all it takes to resolve it.

    A bit more on the whole www part here

    https://dropwww.com/why

    @phenomlab the only problem is that some places require the www to know its a website.
    E.g. if I write,
    aignite.nodebb.com
    (This page does recognise its a link. But some chat / media pages dont)
    Or if I write
    www.aignite.nodebb.com

    From what you wrote above, do you say its ok for nodebb to have it set up such that the www one doesnt work?
    Many people not so technical may write www., out of habit.

    Further thought, how does this site know which of the following are links?
    test
    test.one
    test.com
    test.test2.org

  • @phenomlab the only problem is that some places require the www to know its a website.
    E.g. if I write,
    aignite.nodebb.com
    (This page does recognise its a link. But some chat / media pages dont)
    Or if I write
    www.aignite.nodebb.com

    From what you wrote above, do you say its ok for nodebb to have it set up such that the www one doesnt work?
    Many people not so technical may write www., out of habit.

    Further thought, how does this site know which of the following are links?
    test
    test.one
    test.com
    test.test2.org

    @Panda said in www. Infront stops website access?:

    the only problem is that some places require the www to know its a website

    This isn’t the case at all. All websites even without the www part will still begin with either http or https even if entered directly into the address bar as (for example) mysite.mydomain.com - the browser will first try http then https and ideally, if the request is received as http it should then by issued a 301 permanent redirect to https

  • @phenomlab the only problem is that some places require the www to know its a website.
    E.g. if I write,
    aignite.nodebb.com
    (This page does recognise its a link. But some chat / media pages dont)
    Or if I write
    www.aignite.nodebb.com

    From what you wrote above, do you say its ok for nodebb to have it set up such that the www one doesnt work?
    Many people not so technical may write www., out of habit.

    Further thought, how does this site know which of the following are links?
    test
    test.one
    test.com
    test.test2.org

    @Panda said in www. Infront stops website access?:

    From what you wrote above, do you say its ok for nodebb to have it set up such that the www one doesnt work?
    Many people not so technical may write www., out of habit.

    100%, yes, as it’s the industry standard. If anyone does write www that should auto redirect to the correct convention. Try accessing this site as www and see what happens.

  • @phenomlab the only problem is that some places require the www to know its a website.
    E.g. if I write,
    aignite.nodebb.com
    (This page does recognise its a link. But some chat / media pages dont)
    Or if I write
    www.aignite.nodebb.com

    From what you wrote above, do you say its ok for nodebb to have it set up such that the www one doesnt work?
    Many people not so technical may write www., out of habit.

    Further thought, how does this site know which of the following are links?
    test
    test.one
    test.com
    test.test2.org

    @Panda said in www. Infront stops website access?:

    Further thought, how does this site know which of the following are links?
    test
    test.one
    test.com
    test.test2.org

    Because the a href anchor will only react to valid TLD (Top Level Domains), of which .one isn’t, and no suffix at all will obviously be ignored and treated as text.

  • @Panda said in www. Infront stops website access?:

    From what you wrote above, do you say its ok for nodebb to have it set up such that the www one doesnt work?
    Many people not so technical may write www., out of habit.

    100%, yes, as it’s the industry standard. If anyone does write www that should auto redirect to the correct convention. Try accessing this site as www and see what happens.

    @phenomlab
    Im not talking about entering in a browser, but writing in a post

    So on Discord I mesaged someone
    www.aignite.nodebb.com
    And it gave the SSL error when clicked
    Nodebb.org arent striping the www

  • @phenomlab
    Im not talking about entering in a browser, but writing in a post

    So on Discord I mesaged someone
    www.aignite.nodebb.com
    And it gave the SSL error when clicked
    Nodebb.org arent striping the www

    @Panda if I check that URL, it redirects to the NodeBB home page.

  • @Panda if I check that URL, it redirects to the NodeBB home page.

    @phenomlab said in www. Infront stops website access?:

    @Panda if I check that URL, it redirects to the NodeBB home page.

    Yes, but why?!

  • @phenomlab said in www. Infront stops website access?:

    @Panda if I check that URL, it redirects to the NodeBB home page.

    Yes, but why?!

    @Panda because there is no match for the DNS entry specified. The receiving web server parses the headers looking for a destination hostname to match, and anything the web server is unable to resolve will be sent back to the root.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • What’s going on with NodeBB?

    Performance nodebb script die
    8
    2 Votes
    8 Posts
    768 Views
    @cagatay That is quite the jump as importers from one forum platform to another are notoriously unreliable and could land up being quite costly if it requires managed services.
  • Whitespace fixes in Nodebb

    Solved Customisation nodebb
    18
    2
    7 Votes
    18 Posts
    3k Views
    @Panda Just circling back here with something of an update (which I think you’ll like). I’ve completely restructured the ranking system. There are now less ranks, with a higher point threshold to reach them. More importantly, if you reload the site, you’ll notice that the ranks are now icons. I also removed the “Author” badge, and made this a single icon, which (to me) looks much better.
  • Composer options on nodebb

    Solved Configure nodebb
    8
    1
    3 Votes
    8 Posts
    1k Views
    @Panda You should be able to expose the CSS for these using F12 to get into console [image: 1686833368846-3591518c-e3a3-4ada-a43c-6b32a5e0359c-image.png] [image: 1686833399483-a2b8ed46-4157-4ff2-85f0-576543380107-image.png] That should then expose the element once selected [image: 1686833431032-89d9c545-a47a-40d1-98f4-80cf3b958e8f-image.png] Here’s the below CSS you need based on the screenshot provided. .composer .formatting-bar .formatting-group li[data-format="picture-o"], .composer .formatting-bar .formatting-group li[data-format="spoiler"] { display: none; }
  • NodeBB: Privileges for the Announcement channel

    Solved Configure nodebb
    6
    1
    1 Votes
    6 Posts
    1k Views
    Up to you really
  • NodeBB v3

    Announcements nodebb v3 nodebb
    2
    3 Votes
    2 Posts
    735 Views
    @cagatay JS will work fine - no changes there, and there are no plans to drop support for jQuery. More of an issue is the CSS - for which there are quite a few breaking changes. Keep an eye on sudonix.dev (my development site) where you can see progress in relation to how I am tackling the compatibility issues.
  • NodeBB Theme/Skin Switcher

    Solved Customisation nodebb
    38
    7 Votes
    38 Posts
    8k Views
    @Teemberland great spot ! You should create a PR for that so they can include it in the official repository. Just be aware that any subsequent releases will overwrite your fix without the PR.
  • 4 Votes
    8 Posts
    3k Views
    @phenomlab Sorry to delay in responding, yes as i mentioned above, i had to remove my redis from docker and reinstall a new image with this command docker run --name=redis -p 127.0.0.1:6379:6379 -d -t redis:alpine and now when i test my ip and port on https://www.yougetsignal.com/tools/open-ports/ the status of my redis port is closed. I think which to configure firewall in droplet digital ocean is a good idea too, and i will configure soon. Thanks for the help!
  • Detect if user is admin

    General nodebb javascript code
    2
    0 Votes
    2 Posts
    1k Views
    @pwsincd I think you can use userData.isAdmin = isAdmin; if I’m not mistaken - see https://community.nodebb.org/topic/15128/how-to-hide-whitelist-user-field-only-to-owner-or-admin?_=1648802303112 for an example