GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how do i make sure a webpage can only be accessed through https? (https://gfy.com/showthread.php?t=927459)

whatif_3 09-13-2009 10:04 AM

how do i make sure a webpage can only be accessed through https?
 
for some reason, my admin cant do it and i need to get it done, any suggestions?

grumpy 09-13-2009 10:06 AM

get a verisign certificate

woj 09-13-2009 10:06 AM

If you want to invest a few bucks for a solution, icq:33375924

quantum-x 09-13-2009 10:08 AM

in a .htaccess

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

quantum-x 09-13-2009 10:09 AM

Quote:

Originally Posted by woj (Post 16314151)
If you want to invest a few bucks for a solution, icq:33375924

Sorry Woj :|

whatif_3 09-13-2009 10:33 AM

Quote:

Originally Posted by quantum-x (Post 16314157)
in a .htaccess

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

thanks man, appreciate it

fris 09-13-2009 10:37 AM

ya just forward all requests to https

Cyandin 09-13-2009 10:38 AM

Quote:

Originally Posted by quantum-x (Post 16314157)
in a .htaccess

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

:thumbsup

fris 09-13-2009 10:46 AM

Code:

RewriteEngine On
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]


who 09-13-2009 10:55 AM

htaccess hack is totally insecure.

whatif_3 09-13-2009 10:58 AM

hmm, will that prevent somebody from going back to the url and taking the "s" out and proceeding? (and if they do, send them back to https://)

thanks for the help guys

camdough 09-13-2009 11:07 AM

Yes it will.

Test it out yourself.

Quote:

Originally Posted by whatif_3 (Post 16314344)
hmm, will that prevent somebody from going back to the url and taking the "s" out and proceeding? (and if they do, send them back to

thanks for the help guys


fris 09-13-2009 01:04 PM

Quote:

Originally Posted by who (Post 16314336)
htaccess hack is totally insecure.

Please tell us why?

alias 09-13-2009 01:05 PM

Quote:

Originally Posted by quantum-x (Post 16314157)
in a .htaccess

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

:thumbsup


All times are GMT -7. The time now is 10:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123