Author Topic: Can't login if visiting directly  (Read 226 times)

Offline WASasquatch

  • Member
  • *
  • Posts: 1109
  • to = ( be ) ? be : not;
Can't login if visiting directly
« on: March 18, 2018, 10:00:07 PM »
You can't login if you visit the forums specifically from Chrome/Firefox tab quicklinks because the reference URL is a chrome/firefox specific address or non-existent.  Gives you a error along the lines of "Reference URL can't be validated, go back and try again"
Art can be a window into the soul

Offline Matt

  • Planetside Staff
  • *
  • Posts: 2937
  • I'm the crazy one
Re: Can't login if visiting directly
« Reply #1 on: March 18, 2018, 11:15:57 PM »
Just because milk is white doesn't mean that clouds are made of milk.

Offline WASasquatch

  • Member
  • *
  • Posts: 1109
  • to = ( be ) ? be : not;
Re: Can't login if visiting directly
« Reply #2 on: March 19, 2018, 09:57:02 PM »
Oshyan has some instructions here:

https://planetside.co.uk/forums/index.php/topic,24211.msg245566.html#msg245566

Matt

Those steps are done automatically every time I close my browser or start my computer (CCleaner), and have been dumped dozens of times since the move. They also should have nothing to do with PHPs ability to read the reference URL.

This appears to be the forums PHP system not recognizing the referral URL ($_SERVER['HTTP_REFERER']) if it comes form Mozilla's quick links, which the URL is "about:newtab" or blank. Basically you have to go to the forums, click a link, so your reference URL is from the forums (or come from Google search results), and THAN login.
« Last Edit: March 19, 2018, 09:59:17 PM by WASasquatch »
Art can be a window into the soul

Offline luvsmuzik

  • Member
  • *
  • Posts: 2186
    • luvsmuzik 1995
Re: Can't login if visiting directly
« Reply #3 on: March 19, 2018, 10:02:00 PM »
I am wondering if perhaps we need to create a new bookmark for login, since the old code would be in that one. Mine has updated on its own finally, no problems this week.

Offline WASasquatch

  • Member
  • *
  • Posts: 1109
  • to = ( be ) ? be : not;
Re: Can't login if visiting directly
« Reply #4 on: March 20, 2018, 12:13:28 AM »
I am wondering if perhaps we need to create a new bookmark for login, since the old code would be in that one. Mine has updated on its own finally, no problems this week.

My quick-link is just https://planetside.co.uk/forums/index.php for the main forums. I never had any DNS issues. This is entirely related to the forums security check for referrer URLs, PHP related. Either Fireforx is sending "about:newtab" as a referrer, or the forums for some reason aren't accepting no referrer (meaning someone directly went to the website)

If "about:newtab" is being sent, that's clearly not a valid URL, but is valid for the browser, and may need to be added to exceptions within the forums module code. It's pretty common to use your browsers newtabs quicklinks these days.
« Last Edit: March 20, 2018, 12:15:20 AM by WASasquatch »
Art can be a window into the soul

Offline jaf

  • Member
  • *
  • Posts: 697
Re: Can't login if visiting directly
« Reply #5 on: March 20, 2018, 07:05:33 PM »
Finally back on this morning. Lots of catching up to do.
(27Mar18) Ryzen 1800x, 960 EVO 500GB NVME-M.2 SSD, Corsair Vengeance 64GB DDR4 3200 Mem,  EVGA GeForce GTX 1080 Ti FTW3 Graphics(391.35), Win 10 Pro x64, Terragen 4.1.18

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12045
  • Holy snagging ducks!
Re: Can't login if visiting directly
« Reply #6 on: March 20, 2018, 08:34:20 PM »
I don't use the "quicklinks" you're talking about. Can you edit them manually? The index.php is not needed and in fact should probably be removed. Obviously the forums directs you there from /forums/ but I suspect it may help your problem. Likely this is due to how SMF handles secure (https) sites.

- Oshyan

Offline WASasquatch

  • Member
  • *
  • Posts: 1109
  • to = ( be ) ? be : not;
Re: Can't login if visiting directly
« Reply #7 on: March 20, 2018, 11:36:55 PM »
I don't use the "quicklinks" you're talking about. Can you edit them manually? The index.php is not needed and in fact should probably be removed. Obviously the forums directs you there from /forums/ but I suspect it may help your problem. Likely this is due to how SMF handles secure (https) sites.

- Oshyan

It shouldn't matter, as Apache/NGINX or w/e will forward to the default web directory file, being index.html, index.htm, and finally index.php (whichever exists first)
Art can be a window into the soul

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12045
  • Holy snagging ducks!
Re: Can't login if visiting directly
« Reply #8 on: March 21, 2018, 10:51:08 PM »
But... did you actually *try* it?

- Oshyan

 

anything