CloudFare. Suggestion to all whose site is down (domain owners only)

Has any of you guys ever used this on an ecommerce site? How well does it play with shopping carts?

I have mixed feelings about this.
PROS:

  1. when my wordpress page is up, cloudflare makes static objects like images load faster.
  2. ping to ā€œnew ipā€ is 80s. poing to actual 000webhost IP of my website was 300s.
  3. Hides the actual IP of the website.

CONS:

  1. when my wordpress page is down due to hosting problems, it doesnā€™t help. Page wonā€™t open from cache or something.
  2. askimet stats in wordpress and comment IPs are all the IP of cloudflare. there is no way to tell who is posting comments. this is like using a proxy.

for the IPā€¦



function getuserip(){
	if ($_SERVER["HTTP_X_FORWARDED_FOR"] == "") {
		// It Isnt A Proxy, Return the remote address
		$user_ip = $_SERVER["REMOTE_ADDR"];
	}else{
		// It Is A Proxy, Get the real EXTERNAL ip
		$user_ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
	}
	return $user_ip;
}

$users_ip=getuserip();

ive used that since i first started php - i have never noticed any problemsā€¦

and as for cacheā€¦

remember to set the cache headers on your PHP scriptsā€¦

http://php.net/manual/en/function.header.php

not used it on shopping carts, but you can disable cache on pages / file types and use it just for graphicsā€¦ etc.

i use it on php sites and it works a treatā€¦

OurPhotographUK, where do I place the code in my wordpress installation?

You canā€™t use CloudFlare to set carts because most rely on ip adresses and cloudflare makes all ip addresses appear to come from the same ip address. What I would suggest is that you create a parked domain called cdn.youhost.com. This way you can link all your static content (ie images, javascript, css) to cdn.yourhost.com while linking all you dymamic content to www.yourhost.com.

Finally in cloudflare settings you can set the cache to a high number like 8 days or 2 weeks etc.

The only other alternative is to use a carting system based only on cookies. very insecure very unproffessional!

You canā€™t use CloudFlare to set carts because most rely on ip adresses and cloudflare makes all ip addresses appear to come from the same ip address. What I would suggest is that you create a parked domain called cdn.youhost.com. This way you can link all your static content (ie images, javascript, css) to cdn.yourhost.com while linking all you dymamic content to www.yourhost.com.

Finally in cloudflare settings you can set the cache to a high number like 8 days or 2 weeks etc.

The only other alternative is to use a carting system based only on cookies. very insecure very unproffessional!

Hi friends
Return Man 2

this is because the request does come from the same IPā€¦ however as stated above, you can MODIFY YOUR PHP SCRIPT to utilize the users IP via the FORWARDED FOR server callā€¦

you can change lots of settings in cloudflareā€¦ infact, I am on a dynamic ip, and a couple of times ive had to enter a CAPTCHA code to access my website due to previous users of my IP using it to spam on forums ETCā€¦ I like thisā€¦ and iā€™m guessing so do 000Webhost since they have allowed the use of cloudflare etc (parked domains not deleted etc when used via cloudflare).

I say any modifications scripts require will never outweigh the benefit of cloudflare. (ive changed a lot of my site, and im actually changing my website to remove a lot of the backend code to cache more of my php pages via cloudflare) IE: Username aquire from cookie and implement using JavaScript and not in the backend PHPā€¦ and display login box etcā€¦ most of one of my websites will be cacheable thenā€¦ - as opposed to most of the cache messing up stuff like login etc)

The ā€œonline anytimeā€ feature is fantasticā€¦ esp where a site is pure HTML - no hassles works out of the boxā€¦

I am very pro cloudflareā€¦ Even more so since its FREE.

[3 minutes later]

Hussam, Ive never used wordpress, so im unsureā€¦ It will be a matter of searching for the SQL statements of where IP address is inserted into the databaseā€¦ It might be lucky and gained from a function in a mainfile - but unlikelyā€¦

edit: just googled

[URL=ā€œhttp://www.google.co.uk/#hl=en&sclient=psy-ab&q=http_x_forwarded_for+wordpress&oq=http+forarded+for+wordpress&gs_l=hp.3.0.0i22i30.1827.9057.0.10015.29.27.1.0.0.0.838.8371.0j7j9j3j0j3j3.25.0...0.0...1c.1.12.psy-ab.sqRbNTcnr-8&pbx=1&bav=on.2,or.r_qf.&bvm=bv.46340616,d.d2k&fp=aba8e9b51dcbb990&biw=1011&bih=377ā€]http_x_forwarded_for wordpress

straight to: http://mclear.co.uk/2010/12/03/wordpress-and-varnish-comment-ips/

this one seems to be what you wantā€¦
http://wordpress.org/support/topic/wordpress-behind-reverse-proxy

see the comment by ā€œwesterfunkā€ā€¦

@ hussam :

go and install the cloudflare plugin for wordpress.

njoy and good luck :o)

I did, thank you :slight_smile:

Iā€™d like to note: Make sure to give CloudFlare at least 24 hours (Preferably 48) after updating your domainā€™s nameservers before complaining about errors, not connecting, or issues with the site. This will solve 89% of your CloudFlare issues. :slight_smile:

Yes . I am using it and it really works .

Yeah i love emā€™ been with them since the beta and have 2 t-shirts to proove it! :wink:

Please message was sent to :virgo::aries: email saying that :virgo::aries: site is suspended,buy ȊĢŠĢĢ… donā€™t have any adult content insde :virgo::aries: site please your people should unsunspend :virgo::aries: site one9japlay.netne.net please is the site ȊĢŠĢĢ… use to pay :virgo::aries: scool feels

Worked like a charm.

Does nothing at all for me.

Follow me, It wonā€™t effect services such as e-mail and redirects either right?
Iā€™m a bit concerned because I want to make sure everything would work fine afterwards,
Thanks,

Does cloudfare give you the latest PhP? Why donā€™t say what they have and how much disk space?

I donā€™t see much info on their website. There must be a catch somewhere.

I like to try the free service first before I sign up for the premium service. I believe one should try the shoes or clothes before buying them, donā€™t you think so? :slight_smile:

You were looking for shoes or clothes but just came across backpacks, so to speak :slight_smile:

CloudFlare is not a host, itā€™s just an additional layer between the user and the website thatā€™ll serve as a protection against attackers and will make the site load faster (not sure what it does exactly, Iā€™ve never used it myself)