PCEngine-FX.com

Other Discussions => Off-Topic => Topic started by: Pokun on 11/26/2017, 09:19 AM

Title: Secure Login
Post by: Pokun on 11/26/2017, 09:19 AM
If you log in to the forum using HTTPS the theme graphics and images disappears, and if you don't you will get a warning that the connection isn't secure for sending passwords.

Is this something that is looked into? People trying to register to the forum have said that they couldn't register to the forum because the theme graphics are missing.
Title: Re: Secure Login
Post by: ClodBusted on 11/27/2017, 02:27 AM
I think this is something that SHOULD be looked into. :-k
Title: Re: Secure Login
Post by: NecroPhile on 11/27/2017, 03:57 PM
I can't do anything about missing theme graphics.  That's something Nightwolve or Aaron would have to handle.

I never use a secure connection, but maybe I should?  Other than the missing graphics looking goofy and making some buttons invisible, the site still seems to be fully functional under https; I tested logging in, reading a few threads (responding in this one), and creating a new test account successfully.
Title: Re: Secure Login
Post by: NightWolve on 05/04/2018, 07:10 PM
Thanks, looks like it was Apache .htaccess code to prevent hotlinking by other sites if the referrer domain is not pcengine-fx.com, but the "http:" condition didn't allow for "https:". I also had to remove any hardcoded "https://www.pcengine-fx.com" references in the forum settings.

Old:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://www.pcengine-fx.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.pcengine-fx.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.pcengine-fx.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.pcengine-fx.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

New/Correct:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?pcengine-fx.com [NC]
RewriteRule \.(gif|jpg|jpeg|png|js|css)$ - [F]

I'm updating all my bookmarks to "https:" as I'd rather my connection be encrypted upon login when the cookie password info is used to restore a session.