My Website is Updated to Cloudflare

I updated this website to cloudflare, it was very easy to set up. Now, my website is running way faster than being on shared hosting. I know I know, what am I thinking? Should I upgrade to cloudflare? Well, yes for security purposes. This is a win. By doing so my spam has been down by a lot. It blocks a lot of bad IP ranges. This keeps the good guys in and all the bad guys out.

Cloudflare is awesome it offers SSL protection too if you need it but you can get a cheap ssl certificate from outside vendor which I recommend because you don’t want your information scene by man in the middle attack. Firesheep. But most modern website have ssl. Make sure when your buying something or logging into a website you see https. Https is very important. This will encrypt your log in session. You do not want the bad guys to see you.

With cloudflare now, it automatically makes your website way faster? How may you ask? It has cdn hosts, minifier, and caching. Basically, if your webhost is down they cached your website so it’s still browse-able. That is  amazing feature that cloudflare is offering.

Cloudflare has 6 main features:

  • CDN
  • DNS
  • Optimization
  • Security
  • Analytics
  • Apps

I made the right choice and my load times on this website went from 5 seconds to 3 seconds. That is a huge difference. Now, you guys can browse my website faster. There should be zero hiccups. For everyone else is wondering if they should cloudflare? Get it, if it’s offered on your cpanel it’s just a click to install. If you don’t then just follow their steps at cloudflare and they will have it up within 24 hours.

Anyways, thanks for reading my quick rant about cloudflare.

How to Install Composer on Xampp Windows 8

Prior to this please install xampp first.

Recently, I started to learn Laravel and I wanted to install package handler for windows. Composer is package handler for php. It’s basically it grabs scripts from using command line. Also known as CMD. It’s an alternative to another way of doing which is to installing virtual machine with virtualbox and vagrant.

I have provided my settings for php.ini 

Unzip and place all the files in

C:\xampp\php

Then install composer.

Download composer

Click next -> next, you should get this screen.

composer

C:\xampp\php\php.exe install composer in that directory.

Then win + r type in “cmd” without quotes. Basically, launch cmd.

run

 

Then when in cmd type in composer -v

composerCMD

 

If you see this screen you have successfully installed composer. Use command line to get into xampp htdocs to create the script in that directory. Command cd.. [go back]

type in cd xampp

type in cd htdocs

commandline

 

alt+space to paste in

composer create-project laravel/laravel --prefer-dist [foldername]

paste

You may follow the install documentation from here

In the xampp control panel turn on apache and mysql

xampturnon

Navigate to public folder in your browser laravel/public/

In other words:

Type that in the web browser address bar

http://localhost/laravel/public/

successInstall

Laravel 4.2 Script Download

Super Mario World – Game

[supermarioworld]

 

A – Jump
S – Fireball

Arrow Keys to Move

Disclaimer:
I do not own mario, mario is copyrighted by nintendo. This is only for educational and for fun purposes only. This game is not hosted by me. This is just iframe. It is hosted by critic.net.

Sonic The Hedgehog Game

[sonic1]

 

Copyright Notice:

I do not own copyright to sonic, Sonic is owned by SEGA. This is here only for education purposes. This game is hosted and iframe linked from critic.net

.htaccess is a Double Edged Sword

What’s .htaccess it’s a file that creates permissions for websites in a server. This prevents from who can and who can not view your website.

‘.htaccess’ is the filename in full, it isn’t a file extension. As an illustration, you would not create a file known as, ‘file.htaccess’, it is merely referred to as, ‘.htaccess’. This file will take affect when positioned in any itemizing which is then in flip loaded by way of the Apache Internet Server software program program. The file will take impression over your full itemizing it is positioned in and all info and subdirectories inside the required itemizing.

You’ll create a .htaccess file using any good textual content material editor going back to sublimetext, code, atom and associated (you cannot use Microsoft NotePad).

Here is an example of code a .htaccess file. Be very careful when typing .htaccess you type and you will block everyone from this website.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301,NC]

This could be a fairly superior occasion: it permits password security on the itemizing; it offers redirection to a custom-made error internet web page if an individual fails to login appropriately; and it permits SSI (server aspect accommodates) for use with ‘.html’ records data. Please don’t delay, it’s fairly easy if you obtain a basic understanding and this textual content presents examples which can be capable of go – merely copy, paste and customize. Examples are outlined line by line so it is clear exactly what each line does and why you need it.

Upon getting created a .htaccess file, which may look identical to the one confirmed above (or may merely embrace one line), it is best to add it. This must be achieved using a FTP (file change protocol) program. You must already have one which you need to have used so as to add your web site on-line content material materials. If not, many might be discovered free of price from internet pages equivalent to ‘Get hold of.com’ and we’re in a position to advocate ‘cyberduck’ and ‘winscp’.

When importing your .htaccess records data, this can be very important you add the file in ‘ASCII’ mode. ‘ASCII’ and ‘BINARY’ are fully completely different methods of transferring information and it is necessary .htaccess data are transferred in ‘ASCII’ mode and by no means ‘BINARY’. It is likely your FTP software program program will default to ‘BINARY’ so seek for a ‘Swap Mode’ or ‘Swap Kind’ risk throughout the menus.

Add the .htaccess file to the itemizing you need to it to take affect over. Now go to this itemizing using your web browser as you’d for each different doc in your web site on-line and check it has labored appropriately.

Remember, in case you add your .htaccess file it may not appear throughout the itemizing listings for info in your web site on-line. Don’t fret; this means your server or FTP software program is hiding them which should not be an issue.

A attainable purpose behind error is that if the file permissions on the .htaccess file is not going to be set appropriately. This solely occurs on positive servers, nevertheless it is attainable you will like to change the permissions on the file to ‘755’ or ‘executable’. You’ll be able to do that alongside together with your FTP software program program, seek for a ‘File Permissions’ or ‘CHMOD’ risk, and enter ‘0755’.

In case your .htaccess file would not work, it is advisable contact your system administrator or web site internet hosting agency and assure they’ve enabled .htaccess inside your account. Some web site internet hosting companies do not allow use with out permission. If errors persist, search the recommendation of this textual content for suggestion, or contact your system administrator for suggestion.

In conclusion, the best way to handle broken website is to delete the .htaccess file in general. In addition, learn how to write it to improve ones security.