You are currently browsing the archives for the “Tips and Tricks” category.

WordPress Brute Force Attacks on non-WordPress Sites

December 1, 2017 // Posted in Computer Tips, General, Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

There are more and more would-be hackers out there that are trying to attack WordPress Sites via a brute force attack on the wp-login.php file that is used on worpress sites to log in to the site.

The problem is that they do not know what are WordPress Sites and what are not so they try connecting to a wp-login.php file on almost every site. This can lead to hundreds of attempts on your non-wordpress by these hackers trying to find a wp-login.php file on your server. Check your server log and you will see all these attempts.

Now if as many people as possible added a wp-login.php to their non-wordpress site re-directing any call to that page back to the IP address that attempted to find it, then these idiots would perform a DOS attack on their own PC,
and stop them sending any more requests.

Here’s how to do it:

Create a file called wp-login.php in your non-wordpress site’s root folder with the following text in it (Your server must be php enabled):

 

 

 

 

Let’s hit back at these idiots together.
Steve

PayPal Security changes September 2016

March 25, 2016 // Posted in General, Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

Important PayPal changes you need to be aware of if you are using PayPal on your site:

 

PayPal are updating their Merchant security in September 2016, and it means that when sending transaction data to an IPN etc it will only communicate with secure connections (https://).

This means that you will need to update any scripts that currently use a non-encrypted connection such as IPN’s and will need to install an SSL on your server, if you do not already have one.

You need to also check that your php server supports HTTP1.1 and OpenSSL1.0.1 or higher:

You can check this using phpinfo:

I hope you find this useful,

regards

Steve

Win7 – 2 ways to stop some of the hangs

September 15, 2014 // Posted in Computer Tips, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , ) |  1 Comment

win7sDo you get hangs in Win 7 and sometimes cannot open programs or click on menu items?

Here is how to fix issues from two sources:

1. 16 Bit Programs – “16 bit programs in Win7?”, I hear you say. Yes believe it or not Windows 7 has several programs that run in 16 Bit mode, particularly some of the message pop-ups used by the system and UAC (User Access Control).

The pop-up from UAC, you know, the one that comes up to say “Do you want to let this program …….”, this often hangs and the program selected doesn’t load, and if you look in Task Manager you will see one or more copies of consent.exe (used by UAC) running but doing nothing, occasionally you may get a message to say ‘Too many 16 Bit programs are running’.

I too, was amazed when I discovered Win7 still used 16 Bit programs, I thought they all disappeared with Windows 98, or at least XP, but no Win 7 still uses them.

Because of that the 16Bit programs rely on the files and buffers settings in the config.sys file (remember that from the Windows98 and XP days). In many installations you will not find a config.sys file in the root folder, or there may be one that is set to hidden and system so you don’t see it in file explorer.

Let’s get back to fixing the hanging by UAC and the not being able to click buttons etc.

Create a new text file in notepad or the like and add the following two lines:

FILES=120
BUFFERS=1000

Then save the file with the name config.sys to your desktop.

Copy the file on the desktop and then in my computer open the root folder on drive C and paste the file.  You may get an “access denied” message.

If this happens you may want to view all hidden and system files to see if config.sys exists, if it does view it in notepad and you may see some text in it, but most likely it will either be empty or just contain FILES=20. If there is other text in there copy it and paste it into the config.sys file you just created on your desktop after the text you added, (remove the FILES=20 and leave the FILES=120 you added) and save the file.

Copy your file again and then select Start > All Programs > Accessories, right click Windows Explorer and select ‘Run As Administrator’ say Yes to the prompt. Browse to the root folder on C and paste the file you copied, you may get a ‘File exists overwrite?” this time say yes to overwrite and you new config.sys file will be in place.

Re-Boot your PC and you should no longer get the hangs when you start a program.

2. AVG Anti-virus and Constant Disk access and high disk queues in resource manager – If you are running AVG Internet Security 2014, you may have noticed that most of the time your hard disk in use light is permanently on and programs become very slow to respond and open or save files. Folders too are slow to open and icons or previews take ages to appear.

I have narrowed this down to AVG antivirus, and have found that after about 3 months following installation, something goes awry in AVG, and it starts constantly accessing the hard drive (Even when scans are not running or the PC is idle), so your hard drive is working it’s socks off and has to queue access by other programs whilst it waits for a break in AVG’s access, this makes your other programs slow and puts excessive load and wear on your hard drive which can lead to hard disk failure, not something you really want.

Here’s my fix, and it works every time for me. (make sure you have your license key ready as you will need it).

  • Download the AVG Full Installer (not the on-line installer) you can get it here http://www.avg.com/ww-en/download
  • Uninstall AVG from Control Panel > Add/Remove Programs.
  • Reboot your PC
  • Install AVG from the file you downloaded.
  • Wait for the updates to install or if they don’t start automatically, Choose Check for Updates.
  • When you see the AVG is up to date, reboot your PC.
  • Next time you use your PC once Win7 has loaded everything and settled down, watch the hard drive light, It hardly ever comes on except when loading a program, saving, or a quick flash every now and again.
  • Your hard drive will now last much longer than it would have done, and is less likely to fail.

Hope you find these useful

regards

Steve

 

 

 

SEO Principles

May 24, 2014 // Posted in General, Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

Google

Google

Search Engine Optimisation is key to your site being found on the Internet.

SEO is your way of improving your website’s ranking in Google, Yahoo, and Bing. The more time and possibly money (if employing an external management  company) you spend on SEO, the more chance you will have of being the first search result listed by Google – which is the ultimate goal of any website and to be easily found by your potential customers.

The simplest technique is by altering the text, or ‘content’ on your website. To do this you must first understand your website’s target audience, who are they and what words will they type into Google when they are looking for this particular service or product?  There are of course many possibilities, and it is important to investigate those options and compile a list of your best appropriate keywords and phrases.

Once your keywords and phrases have been researched, your content can then be re-structured effectively so that it is ‘optimized’ and SEO friendly. You can have professional help with this, so talk to an SEO specialist company about what they would recommend. Other important actions include linking, (both internally – from your own site, and externally – other websites providing good linksto yours preferably from PR3 or higher sites) and implementing meta-tags, sub-headings, and website descriptions on all of your web pages. Content is king, so your success will be determined by the quality and relevance of your page content.

Important SEO principles  like ‘Black Hat’ and ‘White Hat’ SEO strategies. These two are very different  and it helps to understand the differences between them before talking to an SEO company about tactics for your website so you can make the right decisions.

‘White Hat’ SEO companies will use or recommend good design, good relevant content and appropriate linking. These will achieve longer lasting results and ranking.

‘Black Hat’ SEO companies, on the other hand will use underhand and inappropriate tactics to get fast results but at the expense of long term strategies and a sustainable website. They will hide bulk keyword text by using a background colour the same as the text so the text doesn’t display, or use font-colours to do the same or very small font sixes so that the text is not readable by humans. This will result in an immediate increase in ranking initially in some cases, but it won’t be very long before the search engines start imposing penalties on those sites and may even remove them from their search results completely.

So if you choose to use an external SEO company, be aware of these two types of SEO companies and ensure you choose the right one.

Keep up to date with what search engines are considering when ranking web site pages and adjust your content accordingly regularly to keep your site high in the rankings.

Also make sure you re-submit your site map to search engines regularly, and every time you make major changes to your site to keep your search results accurate and not link to now non-existing pages or content.

 

 

Slow Internet and Jerky Flash Videos in 7?

May 21, 2014 // Posted in Computer Tips, Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

Slow PC?

Slow Internet?

Do you have a DSL or Fiber connection advertised as fast but still getting slow responses in 7 and particularly jerky flash videos?

If the answer is yes, then here is something to try. It worked for me.

First of all check the state of your TCP/IP. To do this open a command prompt at Administrator Level.

To check the current state,

Type at the command prompt:

netsh int tcp show global

and Press Enter

and you will see something like (Save a copy of your details so you can revert to the original settings if required):

origtcp

We need to get that so it reads :

getto

 

So let’s enforce any user-set TCP Window auto-tunning level by typing netsh int tcp set heuristics disabled at the command prompt and press Enter. You should get an OK message.

Next let’s disable the auto-tuning level by typing

netsh int tcp set global autotuninglevel=disabled

at the command prompt and again press Enter. You should once again get an OK message.

Now we will improve the throughput setting by enabling CTCP, type

netsh int tcp set global congestionprovider=ctcp

at the command prompt and press Enter. Check you get an OK message again.

Now we will change the ECN (Explicit Congestion Notification) by typing

netsh int tcp set global ecncapability=default

at the command prompt and press Enter. You should get an OK message again.

Next we will change the receive-side scaling setting by typing

netsh int tcp set global rss=enabled

at the command prompt and press Enter.

Then we set the TCP Chimney Offload: by typing

netsh int tcp set global chimney=enabled

at the command prompt and press Enter.

Finally we set the Direct Cache Access (DCA) by typing

netsh int tcp set global dca=enabled

at the command prompt and press Enter.

Check the new settings by again typing

netsh int tcp show global

and press Enter  and you should now see:

getto

Close the command prompt by typing Exit and press Enter.

It may take a little while for the changes to take effect if you do not re-start your computer.

Here are a few notes on each section should you wish to revert ti your original settings.

Windows Scaling heuristics

Windows 7 has the ability to automatically change its own TCP Window auto-tuning behavior to a more conservative state regardless of any user settings. It is possible for Windows to override the autotuninlevel even after an user sets their custom TCP auto-tuning level.

possible settings are: disabled,enabled,default (sets to the Windows default state)
recommended: disabled (to retain user-set auto-tuning level)

TCP Auto-Tuning

The default auto-tuning level is “normal”, and the possible settings for the above command are:

disabled: uses a fixed value for the tcp receive window. Limits it to 64KB (limited at 65535).
highlyrestricted: allows the receive window to grow beyond its default value, very conservatively
restricted: somewhat restricted growth of the tcp receive window beyond its default value
normal: default value, allows the receive window to grow to accommodate most conditions
experimental: allows the receive window to grow to accommodate extreme scenarios (not recommended, it can degrade performance in common scenarios, only intended for research purposes. It enables RWIN values of over 16 MB)

Compound TCP – Improve throughput
Add-On Congestion Control Provider

The traditional slow-start and congestion avoidance algorithms in TCP help avoid network congestion by gradually increasing the TCP window at the beginning of transfers until the TCP Receive Window boundary is reached, or packet loss occurs. For broadband internet connections that combine high TCP Window with higher latency (high BDP), these algorithms do not increase the TCP windows fast enough to fully utilize the bandwidth of the connection.

Compound TCP (CTCP) is a newer method, available in 7. CTCP increases the TCP send window more aggressively for broadband connections (with large RWIN and BDP). CTCP attempts to maximize throughput by monitoring delay variations and >packet loss. It also ensures that its behavior does not impact other TCP connections negatively.

By default, Windows 7 has CTCP turned off, it is only on by default under Server 2008. Turning this option on can significantly increase throughput and packet loss recovery.

Possible options are:  ctcp, none, default (restores the system default value).

ECN Capability

ECN (Explicit Congestion Notification, RFC 3168) is a mechanism that provides routers with an alternate method of communicating network congestion. It is aimed to decrease retransmissions. In essence, ECN assumes that the cause of any packet loss is router congestion. It allows routers experiencing congestion to mark packets and allow clients to automatically lower their transfer rate to prevent further packet loss. Traditionally, TCP/IP networks signal congestion by dropping packets. When ECN is successfully negotiated, an ECN-aware router may set a bit in the IP header (in the DiffServ field) instead of dropping a packet in order to signal congestion. The receiver echoes the congestion indication to the sender, which must react as though a packet drop were detected.

ECN is disabled by default in 7 and other modern TCP/IP implementations, as it is possible that it may cause problems with some outdated routers that drop packets with the ECN bit set, rather than ignoring the bit. To check whether your router supports ECN, you can use the Microsoft Internet Connectivity Evaluation Tool. The results will be displayed under “Traffic Congestion Test”.
Possible settings are: enabled, disabled, default (restores the state to the system default).
The default state is: disabled
Recommendation: enabled (only for short-lived, interactive connections and HTTP requests with routers that support it, in the presense of congestion/packet loss), disabled otherwise (for pure bulk throughput with large TCP Window, no regular congestion/packet loss, or outdated routers without ECN support).

 

RSS – Receive-side Scaling

The receive-side scaling setting enables parallelized processing of received packets on multiple processors, while avoiding packet reordering. It avoids packet reordering separating packets into “flows”, and using a single processor for processing all the packets for a given flow. Packets are separated into flows by computing a hash value based on specific fields in each packet, and the resulting hash values are used to select a processor for processing the flow. This approach ensures that all packets belonging to a given TCP connection will be queued to the same processor, in the same order that they were received by the network adapter.

Possible rss settings are: disabled, enabled, default (restores rss state to the system default).
Default state is: enabled
Recommended: enabled (if you have 2 or more processor cores and a NIC that can handle RSS)

TCP Chimney Offload

TCP chimney offload enables Windows to offload all TCP processing for a connection to a network adapter. Offloads are initiated on a per-connection basis. Compared to task offload, TCP chimney offload further reduces networking-related CPU overhead, enabling better overall system performance by freeing up CPU time for other tasks.

The possible states are disabled, enabled,  automatic (only Windows 7 and 2008 Server) as follows:
automatic – This default setting is only available under Windows 7 and 2008 Server. It offloads if the connection is 10 GbE, has a RTT < 20ms, and the connection has exchanged at least 130KB of data. The device driver must also have TCP Chimney enabled.
default – this setting restores chimney offload to the system default. Setting this “default” state under Windows 7 and 2008 Server is possible, but it sets the system to the “automatic” mode described above.
disabled – this setting is maually configured as disabled.
enabled – this setting is manually configured as enabled.

I hope you find this useful.

Steve

 

How to get a specific image, title and detail to display in the facebook share on facebook when someone clicks the share button on your page

February 28, 2014 // Posted in Computer Tips, General, Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , ) |  No Comments

 

#facebook

Facebook have recently removed some functionality from the sharer.php and share.php, so that you can no longer send customised parameters to the sharer such as images, title and detail description.

You now have to either create an app or you can use the Open Graph tags.

The open graph tags are used in the following way:

Add the following to the head section of your page, either in an html fragment or directly into the page HTML:
<meta property="og:title" content="My Web Site Title" />
<meta property="og:type" content="website" />
url" content="http://www.mysite.co.uk" />
<meta property="og:image" content="http://www.mysite.co.uk/images/myimage.jpg" />
<meta property="og:site_name" content="My Site" />
<meta property="og:description" content="Here would go the details about your site that you would like to appear in the description area." />
<meta property="fb:admins" content="1996403603" />

Replace the highlighted areas with your own details.

The fb:admins is the id of the user that manages your facebook pages, here’s how to find it: Go to 

https://developers.facebook.com/tools/explorer/  (While you are logged into facebook)

You will see the following:

The highlighted number will be your fb:admins ID. 

Then add your share button, image or text and add a hyperlink like:

http://www.facebook.com/sharer.php?u=http://www.mysite.co.uk/index.html

Set the target to New Window

Add an an onclick event to the hyperlink by adding the following over the __AddCode=”Here” tag of the hyperlink in the attach HTML.

onclick="var w = window.open(this.href,'_blank','width=600,height=400,left=20, top=20, menubar=no,resizable=no, scrollbars=yes,status=no,toolbar=no'); if( w != null ){ w.focus(); }; return false;"

The onclick event will open the sharer page in a pop-up window so that the user doesn’t leave your site to share the page.

Ok so far so good, but if you click your share button now, it will not pick up the details in the OG tags but will try and find an image on the page and use the page title, it will also try to find some text on the page to use as a description.

The reason is that facebook needs to ‘scrape’ your page first to store the details in the OG tag. So we need to force facebook to ‘scrape’ your page. To do this go to  https://developers.facebook.com/tools/debug/ and enter your full page URL in the box and click Debug:

You should get a result something like the one below with no errors:

Now reload your page and click your share button, it should now show the Title, description and image you set in the OG tags.

Your share pop-up should then look something like:

 

Facebook will re-scrape your page every 24 hours, so if you make changes to your OG tags it may take 24 hours for them to change when you click your share button. If you need any changes to take effect immediately, then just go to the OG debug page and re-debug your OG tags on the page again.

 

 

 

Its All About Position!

January 9, 2014 // Posted in Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

triplepivotPosition is important in many things in life, work, football, cricket and even sex.

If you are not in the right position something will go wrong!

It is the same with code on your pages, particularly with jquery and jquery-ui.

How many times have you added an additional jquery widget to one of your pages only to find something else that used to work, no longer does.

I get many requests for help for exactly the same issue and see many posts on forums with the same problems. When you look at the responses that others have given, you will often see complicated modifications to javascript libraries, or lots of additional code or changes to code that are supposed to fix the issues, such as jquery noConflicts and the like. In some cases these do fix the immediate problem, but involve quite a bit of work and some require a reasonable knowledge of javascript coding.

In almost all of the situations I have been asked to help with, however, I have found the solution to be much simpler, it’s about position and what is loaded and when.

Before entering into any complicated code changes here is something to try first, it won’t  require any modifications to code or re-writing javascript libraries and even those with little or no javascript knowledge can make the changes.

Let’s imagine you have a javascript gallery on your page, this will require a jquery library, some code in the head of your page and some in the body, when using WebPlus these will be added automatically by the program and will not be moveable as WebPlus controls their location.  You now add a third party javascript add-on that tells you to add some code to the head of your page and some to the body, they will also tell you to include a jquery library and perhaps a jquery-ui library. Well first of all forget adding the jquery library if WebPlus has already added it’s own, as if there is two on the same page that will in itself cause conflicts.

Secondly if the code you added to the head for your third party contains $ signs to call functions in jquery etc then you will more than likely find that something will not work after you add it, either your javascript gallery or your new add-on.

Before you get into complicated modifications here is a tip when your new add-on causes issues with your currently working javascript add-on :

Firstly forget the old addage of ‘You must add your scripts to the head of your page’, that’s a load of twoddle.

Move the code that you added for your new add-on to the body of your page, firstly just after the body tag (in WebPlus paste it over the !– Page Body Start — tag), so that all your new code is below your original add-on’s code.

If that doesn’t get both working move your new code to just before the body end tag, (In WebPlus paste it over the — Page Body End — tag).

In most cases the above will fix the issue and both your add-ins will work happily together.

Sometimes you may have more than two add-ins on a page and one or another stops working when the additional ones are added. Play around with the position of each script on the page  until you get the right combination, and you will fix most conflicts with positions. Don’t forget to also check for duplicate libraries, and make sure that the libraries are loaded before any scripts that call them come into play, It’s all about position again.

As I said at the start I have found that most problems with javascript conflicts can be fixed with position of the scripts, so you can save yourself a lot of work by playing with positions before anything else.

I hope that this helps someone.

Steve

 

 

 

 

 

Top 10 FREE Traction Building Ideas for a New Web Site

November 12, 2013 // Posted in Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

The dot com era proved that just building it isn’t enough. The chicken and the egg issue exists you need customers to get customers… and attempting to launch a web site, is that issue on steroids. So, how to get traction?

Here are Ten FREE Traction building Ideas we are trying:

1) Email Your Friends:
Find everyone you know that relates to your target market and introduce them to your website via email… as you know them, leverage every piece of emotional capital you have with them to encourage them to take a look at your new site and join.

2) Ask Your Friends to Refer Others:
If you send an email to people who are your target market, clearly articulate why it is valuable to ‘THEM’ (not just you) to join your site… and then ask and make it easy for them to refer people they know. Here’s an example of an email I wrote that asks for a referral –

“Please forward to anyone that may be interested… entrepreneurs, advisors, people with Blogs, press contacts etc! Even forwarding to four or five contacts will make a big difference for us!

Happy New Year and thanks!

++

I’ve just discovered a new web service bringing potential business advisors together with entrepreneurs and early stage businesses. For Advisors – It’s a great way to discover new deal flow and get involved in a hot new company. For Entrepreneurs – a great way to take your business to the next level in 2007!

The site is called Advisor Garage – http://www.AdvisorGarage.com and was recently featured in Business Week!

Please sign up and forward this email to great advisors and entrepreneurs.
++

After three or four weeks of steps 1 & 2 we found that we had begun to get a few people onboard… So now what?

3) Write a Press Release and get it OUT there…
I can almost hear a few folks swallowing and already considering looking for the next blog… it really isn’t that tough and it isn’t expensive. In fact, its FREE! Don’t believe me? Consider signing up to PR Leap (http://www.prleap.com/learn_more). Not only do they have some good articles which explain for dummies (like me!) how to write a press release but they also offer a free submission service to multiple channels such as Google News, Google Search, Yahoo! Search, Topix.net, Technorati, MSN, Ask News, Moreover, NewsNow and others. According to their website – PR Leap is the best way to send your news release(s) to all major search engines, newswires, and websites. And basic accounts are free!

So what happened with us? Well we signed up, created a one page press release (took about 30 minutes), submitted it and it was approved earlier today. It will appear tomorrow. If you are interested, the link to the press release is: http://www.prleap.com/pr/61185/

The basic plan (read… Free) comes with stats, so I’ll let you know in a few days if the press release was actually read by anyone and if it was picked up by any sites, bloggers, press etc. Let’s see how good PR Leap and our press release writing skills are!

4) A Personalized Toolbar:
A great startup called Conduit (http://www.Conduit.com) offers people the opportunity to create their own, personalized toolbar for FREE. Conduit has a wizard embedded within their website which takes you through the setup process step-by-step. It took about twenty minutes and once you’re done, they create a link to your toolbar download site which you can then share through an email signature or through a click through download on your new networking site. There are a number of cool ways to tailor the toolbar… your branded search, create links to particular pages on your own site, add weather, a radio and so on to make sure its a value download for your customers.

5) Design Your Site with the Customer In Mind and Make Inviting Others Easy
If, like us, your marketing budget is measured by the quarters rattling around in your pocket, then do your site a favor and design it so the ‘Invite Others’ button is never far away. No matter what page the users happen to be on. Bold it, make it big, underline it if you have to but referrals from happy customers are always easier to get than attracting new customers.

6) Friends & Contacts revisited:
Do any of your friends know anyone in the press or people who have blogs ? Well you won’t know until you ask… ASK!

7) Join Linked In (http://www.linkedin.com)
If you haven’t already, consider joining linked in. Yes, its another networking site, and you could consider them the competition (In your dreams!)… but after joining you can search through the directory and find people that may either a) be interested in joining your site or b) encouraging others to do so. If you aren’t a member already, take a look

8) Groups & Forums:
Are there Yahoo (http://groups.yahoo.com) or Google Groups (http://groups.google.com) or other online forums that include the types of people you want to attract to your new networking site? If so, join them but beware… most groups want members to contribute to the discussions and no groups appreciate spam. So find the best forums for your target customers, join and spend some time getting to know what subjects are being discussed. Give it a week or two then jump in and add some value… and make sure that your post includes your email and perhaps the web address. If it is valuable, then members may check out your new site…

One last thing, if there aren’t any good groups with your target customers… consider creating your own… and make it it feeds your new networking site. Here’s one I started and yes… I know it only has a few members… but its more links in the internet for your website which appears in your google or Alexa results: http://groups.google.com/group/Harvard_Entrepreneurs_Startups?lnk=oa&hl=en

9) Write to your Existing Members:
Do you have a few members? If so, email them occasionally (Not every day!) and remind them of the value of your site… perhaps highlight a particularly useful tool or feature of your website. Maybe reach out to some of the individual members and ask them if you can write about them joining the site, a person feature if you will. At the bottom of each of these emails… give them a few sentences (above for example) to send on to others they know. Stress how much you would appreciate their help and how important they are to you and your young business.

10) Drum roll… .badda badda badda… .Create a Blog!
Here’s hoping that a blog is the tenth and most valuable means of getting the message out there about a new networking site. (WordPress.com is FREE)

Originally posted by : Andrew D. Ive

CloudFlare and Your Web Site

July 12, 2013 // Posted in Main, Tips and Tricks (Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ) |  No Comments

CloudFlare

CloudFlare *
and your Web Site

Have you been given the option by your host to install CloudFlare Security on your WebSpace?

 

 

Are you now getting problems with javascripts not working, or some php pages not working correctly?
If the answer to the above questions is Yes, then it appears that the problem with your scripts not working or your php pages not working correctly may be down to CloudFlare.
While trying to solve the same issues for a friend on her site, it was identified that there was nothing wrong with the php code or javascript code as the same pages worked fine on other servers.
Further investigation revealed that something was affecting the headers being processed by the php engine. Some php code requires that the php pages code is the first thing processed by the php engine, and on looking at error logs on the server, the error was ‘cannot send header code on page xxx.php, header already sent’.
The obvious reasons for this were checked, code was correct and in the right place as the first line in the php page, the file had was not saved as utf-8 with BOM, so something else was affecting the page headers.
CloudFlare was switched off and everything started working fine again. It appears that CloudFlare may be adding it’s own headers to pages before they are processed by the php engine and that was what was causing the pages not to perform correctly.

* CloudFlare orange cloud logo is a trademark of CloudFlare, Inc and is acknowledged as such.

 

%d bloggers like this: