Re:The theory versus the practice of “static websites”
by BrandoElFollito on Saturday July 15, 2023 @07:30AM
(#36735597)
The static sites attack surface is so small that it is zero :)
You get everything anyway, and nothing you do is used by the server.
Of course the server itself can be attacked, though it is much more difficult then with dynamic sites.
There is no custom executable to run, there is no need for authentication, there is no need to write files to disk, there is no need to parse user-provided content, there is no need to access a database, there are no custom libraries to update... A static website can literally be "upload and forget", and that simply isn't the case for dynamic sites.