ForceSSL Plugin

Have you ever been in the position where you want to turn SSL encryption on for one page but not your whole site? ForceSSL is a Joomla 1.0.x mambot that allows the site administrator to turn SSL encryption on for just one page or turn it off. It scans the content before it is displayed to the page and if it finds the mosTags below which activate it or deactive it it will redirect to the appropriate protocol (https vs. http). The beautiful thing about this mambot is the ability to just have it active per page. For example, let's say you have an application that you want secured but when they submit it you don't want the user to continue on the SSL encrypted site. You would ad the {mosForceSSL on} tag to the application page and then the {mosForceSSL off} on the Thank you page. When the admin/author inserts the tag into the content of the article it will check to see if the page has been accessed using the HTTPS protocol. {mosForceSSL on} - If the HTTPS protocol is in use, it will continue loading the page. If the page has been accessed without the use of the HTTPS protocol, the user will be redirected to the same page but using HTTPS. {mosForceSSL off} - If the HTTPS protocol is in use, the user will be redirected to the same page but NOT HTTPS. If the page has been accessed without the HTTPS protocol then it will continue to load the page.

NOTE: You must publish this moscode {mosForceSSL on} within either a module that executes mambots or the CONTENT text area. The intro text area will not execute the mambot.

****
v0.3b - Fixed redirection exceeded error when SEF is enabled.

Update with 0.2b - I have updated the script to better variable handling which should fix the bug of redirecting to the home page.

Report

byyeknoM on October 23, 2008
I was in great need of something like this and Jim's plugin v0.2b, works like a charm!!