How do I add an auto_prepend directive for wordfence (and other scripts)?

1. Create a file called user.ini in /home/yourusername/public_html/ from the file manager application in the control panel or by using a plain text editor.

2. Enter the directive in this format:

        auto_prepend_file = /home/yourusername/path/to/resource

3. If the file has been created from the file manager, save the file. Rename the file to .user.ini

4. If the file has been created locally, save the file, then upload it to the /public_html directory under the account via FTP. Once uploaded, rename the file to .user.ini (the file can also be saved as .user.ini locally prior to uploading).


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

PHP script error: FATAL ERROR: register_globals is disabled in php.ini, please enable it!

<b>Symptom: </b>The following error appears on a site running a php-based...

HOW TO: Combat referer spam/block certain referers

Symptom: A client wishes to deny access to their site (or parts of it) when the traffic is...

Expression Engine installation generates "variable references" error

Symptom: Expression Engine installations older than version 1.3.1 generate an "Only variable...

My phpBB forum installation is not accessible

Symptom: Client cannot access phpBB forum installation. Permissions on the forum installation...

Enabling register_globals

Symptom: A client's script requires that register_globals be enabled.Resolution: Globals are not...