Filtering menggunakan mod_substitute di cPanel/WHM

Posting aja biar nggak lupa, 😀

Requitment
Panel: cPanel/WH
WebServer: Apache
Module: mod_substitute installed
Location script: /etc/apache2/conf.d/includes/pre_main_global.conf

Rule

<IfModule mod_substitute.c>
    AddOutputFilterByType SUBSTITUTE text/html
    AddOutputFilterByType SUBSTITUTE text/x-generic
    AddOutputFilterByType SUBSTITUTE text/css
    Substitute 's|</body>|<script src="file iklan"></script></body>|i'
    Substitute 's|<body>|<body><script src="file iklan"></script>|i'
    Substitute 's|<head>|<head><script src="file iklan"></script>|i'
    Substitute 's|</div>|<img src="file iklan"></img></div>|i'
</IfModule>

Dah gitu ja

Leave a Reply