• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove User-Agent Header

#1
Hello.

For Security reasons. How to remove these two information in the received mail header:

User-Agent: CodeIgniter
X-Mailer: CodeIgniter


Thanks for helping.
Reply

#2
system/libraries/Email.php

public $useragent = 'CodeIgniter';
Reply

#3
(03-04-2017, 12:21 PM)lisheng51 Wrote: system/libraries/Email.php

public $useragent = 'CodeIgniter';

Do not change the Email.php in the system folder

https://www.codeigniter.com/user_guide/l...references

$config['useragent'] = 'NewAgent';
Reply

#4
(03-05-2017, 02:43 AM)Paradinight Wrote:
(03-04-2017, 12:21 PM)lisheng51 Wrote: system/libraries/Email.php

public $useragent = 'CodeIgniter';

Do not change the Email.php in the system folder

https://www.codeigniter.com/user_guide/l...references

$config['useragent'] = 'NewAgent';

Excellent. Thank you so much.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.