Customizing SMF > Portals, Bridges, and Integrations

Anyone here working with CloudFlare/HoneyPot antibot software?

<< < (18/23) > >>

butchs:
It works on my version of 2.0.1 and the date matches my records.

societyofrobots:
The package manager only gave me an error on Subs.php. It was looking for this but couldn't find it:

--- Code: --- array(
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
--- End code ---

So I opened up Subs.php and found this instead:

--- Code: --- array(
'tag' => 'url',
'type' => 'unparsed_equals',
'before' => '<a href="$1" class="bbc_link" target="_blank">',
'after' => '</a>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disallow_children' => array('email', 'ftp', 'url', 'iurl'),
'disabled_after' => ' ($1)',
),
--- End code ---

So I just manually added this right after the above code as per the directions in the error:

--- Code: --- array(
'tag' => 'sse',
'before' => '<!--sse-->',
'after' => '<!--/sse-->',
'block_level' => true,
      ),
--- End code ---

I then ignored the error and installed the package. It's now reporting IP's properly.

However, I'm getting tons of errors related to httpBL, ForumFirewall:
8: Undefined variable: ip   File: /home/sr/public_html/my_site/Sources/httpBL_Subs.php
8: Undefined index: HTTP_CF_CONNECTING_IP   File: /home/sr/public_html/my_site/Sources/Subs-ForumFirewall.php Line: 28

It also doesn't fix the IP reporting in AjaxChat.

Anyone know what I can do to resolve this issue?

butchs:
Yeow...  If package manager reports an error you should not install the mod!  The is most likely a mod conflict.  You should uninstall other mods until the conflict goes away.  Furthermore, if you manually install part you should manually install all of the mod.

That is true especially for this mod since there are so many changes.  Please uninstall the mod and manually install it or start from scratch!

httpBL though well written a few years ago has issues now.  The main issue I have with the mod is that it is easy for a modern bot to bypass it's protection.  Bad behavior with project honeypot does much better.

If you get a "HTTP_CF_CONNECTING_IP" error in forum firewall then you need to set:
Visitor IP call to Proxy  -> 'HTTP_CF_CONNECTING_IP'
Proxy Header ID -> 'Cf-Connecting-Ip'

I do not use 'AjaxChat" so I can not make a comment there without detailed input.  Compatibility with all other mods in the world is impossible...  If you want to try please post it with the appropriate mod.

societyofrobots:
I noticed that with this mod many IP addresses are resolving correctly now. However, a few still point to Cloudflare. It appears much of CloudFlares IPs are now blacklisted by httpBL and BadBehavior, thereby blocking out my visitors. And it hides the true IPs of actual spammers.

It appears I'm going to be forced between these two choices: disable BadBehavior, httpBL, and ForumFirewall . . . or remove CloudFlare. Any opinions? I'm thinking CloudFlare must go . . .


--- Quote ---If you get a "HTTP_CF_CONNECTING_IP" error in forum firewall then you need to set:
Visitor IP call to Proxy  -> 'HTTP_CF_CONNECTING_IP'
Proxy Header ID -> 'Cf-Connecting-Ip'
--- End quote ---
I checked, and it's already set like that . . .

I have no interest in manually modding files. I tried that before for several years, but every SMF version upgrade was a huge hair pulling experience to keep track of all the changes. I promised myself never again :P
(I guess I could write my own personal mods, but I don't really have time for that either . . .)

butchs:
httpBL is not compatible with Cloudflare.

Bad Behavior is if you check Enable Reverse Proxy, set "IP call to Reverse Proxy" -> 'Cf-Connecting-Ip' and leave "Reverse Proxy Addresses" blank.

BadBehavior and ForumFirewall  work with the proper settings.  Do not forget to purge the cache.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version