Simple Headers/Footers Rotater for Apache







Description:
  • Script adds random headers and/or footers to all html pages
Status:
Installation:
  1. Download License. If you do not agree to license, stop installation
  2. Save file hfr.pl to your hard drive
  3. Correct first script line if path to Perl on your server is not "/usr/bin/perl"
  4. Create directory /cgi-bin/hfr/ on your server
  5. Upload file hfr.pl to /cgi-bin/hfr directory on ASCII mode
  6. Change file hfr.pl mode to 755
  7. Create directory /cgi-bin/hfr/headers on your server (if you will use headers)
  8. Create directory /cgi-bin/hfr/footers on your server (if you will use footers)
  9. Create separate files with headers. You can use any names you want, but extension must be .htm
  10. Create separate files with footers. You can use any names you want, but extension must be .htm
  11. Upload headers files to /cgi-bin/hfr/headers on your server
  12. Upload footers files to /cgi-bin/hfr/footers on your server
  13. Go to web directory where you want to add headers/footers to html pages. Script will work for this directory and all subdirectories
  14. Add to .htaccess file two lines:
    Action add-header /cgi-bin/hfr/hfr.pl
    AddHandler add-header .html .htm .shtml

    If .htaccess file doesn't exist, just upload .htaccess with two lines above
  15. If you use other extensions for html files, add them to "AddHandler" line
  16. Enjoy :)


Questions?

Back