Cloudflare Question

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Suggested Hosts
aeneas1
Registered User
Posts: 389
Joined: Wed Jan 27, 2016 5:58 pm

Cloudflare Question

Post by aeneas1 » Fri Aug 31, 2018 5:27 am

finally got cloudflare working very nicely, but recently discovered that making edits to my theme becomes very cumbersome with cf enabled given cf caches everything, requiring me to purge the cf cache after every edit...

so my question is, is there a way to temporarily disable cf at the cf website? i tried their "disable universal ssl" option but it caused a lot of log in probs, and wiped out the certificates i had uploaded as far as i could tell... i also tried creating a page rule at cf site which would bypass the cache, but that didn't seem to work either.

any help would be greatly appreciated.

User avatar
david63
Jr. Extension Validator
Posts: 14651
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Cloudflare Question

Post by david63 » Fri Aug 31, 2018 6:18 am

Would that question not be better asked on a Cloudflare board?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
3Di
Registered User
Posts: 12899
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Cloudflare Question

Post by 3Di » Fri Aug 31, 2018 6:25 am

Agreed. :)
aeneas1 wrote:
Fri Aug 31, 2018 5:27 am
any help would be greatly appreciated.
Here you go with the appropriate venue: https://community.cloudflare.com/
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
John connor
Registered User
Posts: 1726
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: Cloudflare Question

Post by John connor » Fri Aug 31, 2018 7:20 am

I can answer this for you as I have been using CloudFlare for 3 + years now.


Yes, with the use of CloudFlare you now have in fact two caches. One at CloudFlare and the other in your phpBB website. So whenever you make a major change to your site you in fact have to clear the CloudFlare cache and the site's cache. Don't forget your browser cache as well.

To do this is very straight forward and simple. Prior to making any edits to your site, go into CloudFlare and put CloudFlare in Development mode. Now under the cache tab clear the cache. So long as your site is in Development mode, CloudFlare won't cache any content at the edge servers. Now make your site edits, and go to the ACP and clear your board's cache once done. Then go back into your CloudFlare dashboard and disable Development mode. Now everything will cache as normal.

Note that you should do this whenever you update your phpBB board. You might also want to temporally disable mod_security (if you have it) in cPanel.

I have written a tutorial at my website on how to properly use CloudFlare and gain all its benefits. Read my Sig on how to help protect your website from hackers, and in that topic is a link to my CloudFlare post.

In a nutshell, using CloudFlare is only half the battle. :ugeek:



Edit- You don't need to disable SSL. That is not a caching option and of course it's gonna mess with logging in since the cookies on your site should be set to secure. If you have enabled SSL/TLS on your site, leave the SSL option in CloudFlare alone.

aeneas1
Registered User
Posts: 389
Joined: Wed Jan 27, 2016 5:58 pm

Re: Cloudflare Question

Post by aeneas1 » Fri Aug 31, 2018 8:22 am

John connor wrote:
Fri Aug 31, 2018 7:20 am
I can answer this for you as I have been using CloudFlare for 3 + years now.
awesome reply john, and very much appreciated!

i know how to edit my board when just phpbb is in play, couldn't be simpler with a decent ftp client and recompile enabled, but as i mentioned cloudflare's cache layer was was really holding the show... i'll give your recommendation a try and will also be sure to read through your tutorial.

again, thank you very much for your very helpful post!
Last edited by Mick on Fri Aug 31, 2018 8:25 am, edited 1 time in total.
Reason: Removed unnecesary full post quoting

User avatar
John connor
Registered User
Posts: 1726
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: Cloudflare Question

Post by John connor » Fri Aug 31, 2018 8:28 am

You're welcome. If you have any questions ask.

User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 2796
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Cloudflare Question

Post by thecoalman » Fri Aug 31, 2018 9:40 am

You really should not need to clear the cache that often. Install XAMPP and work on the site locally, then you only need to upload the files and clear the CF cache once.

There is however a way to do this without logging into CF, in the CF control panel you could obtain the API key. Using that API key you can issue commands to Cloudflare. If someone wanted to make an extension it could likely be integrated with the purge cache option in phpBB's ACP.

https://api.cloudflare.com/#zone-purge-all-files

User avatar
3Di
Registered User
Posts: 12899
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Cloudflare Question

Post by 3Di » Fri Aug 31, 2018 9:57 am

Interesting API thx.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 2796
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Cloudflare Question

Post by thecoalman » Fri Aug 31, 2018 10:03 am

There is likely a few things that could be integrated with phpBB other than purging the cache, IP bans would be one of them.

User avatar
John connor
Registered User
Posts: 1726
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: Cloudflare Question

Post by John connor » Fri Aug 31, 2018 12:28 pm

I'd never EVER trust an API key. That's rife for hacking attempts. It's happened here on this forum.

User avatar
david63
Jr. Extension Validator
Posts: 14651
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Cloudflare Question

Post by david63 » Fri Aug 31, 2018 12:36 pm

John connor wrote:
Fri Aug 31, 2018 12:28 pm
I'd never EVER trust an API key. That's rife for hacking attempts. It's happened here on this forum.
Do you have evidence of that?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1838
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Cloudflare Question

Post by kinerity » Fri Aug 31, 2018 12:57 pm

John connor wrote:
Fri Aug 31, 2018 12:28 pm
It's happened here on this forum.
This site was not hacked - as stated in the announcement, the API key was used to redirect the downloads to a server that did not belong to us. The point of entry was a third party site, not phpBB.
Kailey Truscott - Community Team

aeneas1
Registered User
Posts: 389
Joined: Wed Jan 27, 2016 5:58 pm

Re: Cloudflare Question

Post by aeneas1 » Fri Aug 31, 2018 9:38 pm

thecoalman wrote:
Fri Aug 31, 2018 9:40 am
You really should not need to clear the cache that often. Install XAMPP and work on the site locally, then you only need to upload the files and clear the CF cache once.
when i first started using phpp that's exactly what i did, until a kind forum member introduced to me the world of a) ftp client b) enable recompile and c) test board, since then i've never looked back, just so much easier (for me at least) to make changes to the live test board, changes are all but instantaneous, uninstalled xampp years ago...
Last edited by aeneas1 on Mon Sep 03, 2018 1:06 pm, edited 1 time in total.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64877
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Cloudflare Question

Post by Lumpy Burgertushie » Fri Aug 31, 2018 10:03 pm

I have used xamp, wamp, etc. etc. they work just fine for a short while and then they all start running very very slow. like over 30 seconds some time to load the index.php file for phpbb. I have researched and made all the little tweaks that are around the net to speed them up but none have made any difference.

I do have Uwamp currently installed but usually I just ftp to one of my test boards. It is always much faster than using any of the amp setups.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
John connor
Registered User
Posts: 1726
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: Cloudflare Question

Post by John connor » Sat Sep 01, 2018 11:37 am

kinerity wrote:
Fri Aug 31, 2018 12:57 pm
John connor wrote:
Fri Aug 31, 2018 12:28 pm
It's happened here on this forum.
This site was not hacked - as stated in the announcement, the API key was used to redirect the downloads to a server that did not belong to us. The point of entry was a third party site, not phpBB.


Hack. Verb.

Computers.

to modify (a computer program or electronic device) or write (a program) in a skillful or clever way: Developers have hacked the app. I hacked my tablet to do some very cool things.
to circumvent security and break into (a network, computer, file, etc.), usually with malicious intent: Criminals hacked the bank's servers yesterday. Our team systematically hacks our network to find vulnerabilities.

Post Reply

Return to “phpBB Discussion”

Who is online

Users browsing this forum: No registered users and 16 guests