this already exist - not addition
PHP Code:
// no links with guestbook forum cgi-bin webring affiliates
// no links ending with .cgi .php .asp .pl .rm .ico .cab ...
define('FORBIDDEN_EXTENSIONS','(guestbook|forum|cgi-bin|webring|affiliates|\.(cgi|php|asp|pl|rm|ico|cab|swf|css|gz|z|tar|zip|tgz|msi|arj|zoo|rar|r[0-9]+|exe|bin|pkg|rpm|deb|bz2)$)');
remove space
why you not want .cgi .php .asp .pl - dynamic pages
FORBIDDEN_EXTENSIONS can be more than extensions
config is for you to config - make regex you want