Thread Rating:
  • 7 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Admin CP Honeypot (Fake Admin CP)
#23
For anyone using cloudflare or another reverse proxy you may want to follow the advice of Kretol over in the reviews for the plugin:
Just to note, this doesn't help too much if you're using a CDN or other reverse-proxy for your site.

To take advantage of reverse-proxies (or Cloudflare if you've edited functions.php), open the index.php file in the honeypot admin directory and edit as follows:

Line 26:
$ip = getenv("REMOTE_ADDR");

change to:
$ip = get_ip();

This will use mybb's function, so it'll take into account the reverse-proxies.
I tested it myself and it worked, but I'm not super-awesome with code to know if it's bad for performance or anything. Please feel free to correct me if needed!

Written By: Kretol, 25th September 2011
Aventura
Reply


Messages In This Thread
Admin CP Honeypot (Fake Admin CP) - by Zash - 2011-05-15, 08:16 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Sajuuk - 2011-05-16, 03:13 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Monaco - 2011-05-16, 05:19 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Zash - 2011-05-16, 06:55 PM
RE: Admin CP Honeypot (Fake Admin CP) - by envira - 2011-05-17, 07:59 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Zash - 2011-05-17, 11:36 PM
RE: Admin CP Honeypot (Fake Admin CP) - by envira - 2011-05-20, 07:11 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Jihad - 2011-08-09, 06:07 AM
RE: Admin CP Honeypot (Fake Admin CP) - by Zash - 2011-08-09, 01:49 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Jihad - 2011-08-09, 09:27 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Zash - 2011-08-09, 09:39 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Jihad - 2011-08-09, 09:41 PM
RE: Admin CP Honeypot (Fake Admin CP) - by aventura - 2012-12-23, 11:31 PM
RE: Admin CP Honeypot (Fake Admin CP) - by beh4R - 2014-08-22, 09:56 AM
RE: Admin CP Honeypot (Fake Admin CP) - by J0$H - 2014-12-22, 08:44 PM
RE: Admin CP Honeypot (Fake Admin CP) - by Dyke - 2016-09-14, 06:14 PM
RE: Admin CP Honeypot (Fake Admin CP) - by .m. - 2017-04-04, 09:52 AM
RE: Admin CP Honeypot (Fake Admin CP) - by abmd73 - 2017-05-04, 04:51 AM
RE: Admin CP Honeypot (Fake Admin CP) - by .m. - 2017-05-04, 05:18 AM

Forum Jump:


Users browsing this thread: 13 Guest(s)