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


#101

Should use ip for route domain only cname for sub domains. Mail can error otherwise.

Server ip is in the cpanel...Easy Way :slight_smile:

Domain tw-chat.co.uk
Username aXXXXXXX
Password ******
Disk Usage 0.02 / 1500.0 MB
Bandwidth 100000 MB (100GB)
Home Root /home/aXXXXX
Server Name **serverXX.000webhost.com **
IP Address **31.170.160.XXX **
Apache ver. 2.2.19 (Unix)
PHP version 5.2.*
MySQL ver. 5.1
Activated On YYYY-MM-DD HH:MM
Status Active

for FTP: create a cloud network bypass for "ftp.domain.ext".. (grey cloud, and not orange on the cloudflare network).
OR: use the servername to connect via FTP.

Dont worry about using ip address. it wont change that often. - but if it does change, you need to update your cloudflare settings!


#102

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


#103

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.


#104

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


#105

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...


#106

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


#107

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!


#108

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!


#109

Hi friends
Return Man 2


#110

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"...


#111

@ hussam :

go and install the cloudflare plugin for wordpress.

njoy and good luck :o)


#112

I did, thank you :slight_smile:


#113

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:


#114

Yes . I am using it and it really works .


#115

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


#116

Please message was sent to ♍♈ email saying that ♍♈ site is suspended,buy Ȋ̝̊̅ don't have any adult content insde ♍♈ site please your people should unsunspend ♍♈ site one9japlay.netne.net please is the site Ȋ̝̊̅ use to pay ♍♈ scool feels


#117

Worked like a charm.


#118

Does nothing at all for me.


#119

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,


#120

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: