Mit CGI (Common Gateway Interface) ist es möglich, neben statischem Inhalt durch Aufruf externer Programme dynamisch Inhalte einzubinden.

X
<HTML>
<HEAD>
<TITLE>Meine tolle Home Page</TITLE>
</HEAD>
<BODY>
Das ist meine tolle Home Page<P>
Und ich habe eine voll coolen Counter<P>
<IMG SRC="/cgi-bin/counter.pl">
</BODY>
</HTML>
X
#!/usr/bin/perl                                                                 

# Super toller Counter fuer richtig coole Websites

print "Content-type: text/html\n\n";

....

CGI Originalspezifikation