CGI is out of use, but what if I want to make a secure web system on an intranet?

Asked

Viewed 343 times

1

I know there are many ways to create a secure web system with technologies like PHP. NET and etc, however these interpreted languages expose the code to curious when the system should be installed on a client server for example. I also know that there are code obfuscators, but I confess that besides taking the versatility of PHP for example, it seems to me that they are not as safe as a compiled application.

This issue of the code is complicated and leads to many endless discussions! But anyway, the need is to create a web application that can be installed on a client but that the code can be safe in case "someone" wants to move, it’s not so much stealing the code, but actually moving, it would give a huge headache.

I know there are many options like Delphi and Lazarus Web, but these make use of CGI which in my humble opinion is very good, but I already know it is old.

Today in some applications I use templates, where PHP and HTML files are divided, this form is very productive and maintenance is a delight.

My goal in this post is to know if there are any classes in Pascal ( what can be in Delphi or Lazarus ) that made use of templates thus separating CGI from HTML files.

We have something in that direction?

I’ve searched the web, but I’ve found quite an example using Delphi and Lazarus, but in the traditional way where HTML codes and business rules are scrambled at the same source, I’ve programmed that, but I confess it’s quite laborious, especially maintenance, can be a little disheartening when the project starts to grow.

  • You could use cgi as an API, where HTML using angular, Vue, React or pure whatever, would request this api

  • I understand Edson, but will the maintenance of this combination will not be too laborious?

  • I believe it is even easier, because everything is well divided. You can change the whole backend without touching the front, and vice versa

  • I am realizing that some did not understand my need and would like to know why, at least put a comment to correct my question, I researched a lot on the web and what I found were several examples of how to do CGI,but my need is to know if there is a way to work with CGI in the Codeigniter style, the idea is to join the versatility codeigniter with the security of CGI

  • When you say "Codeigniter" refers to the php framework? In this case your question is about the possibility of compiling php instead of interpreting it?

  • That this php framework, although I don’t use it already tested and it is a hand on the wheel, today I use this template https://github.com/raelgc/template/blob/master/raelgc/view/Template.php it makes the separation of php and html is very light and practical, the intention would be to compile php, but what I’ve been seeing around is not good, have to use third party components and this is a problem when passed to the client... the idea would be to create a template class in cgi using a compiled language like Lazarus or Delphi

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.