Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
An easy way to comply with the new cookie law if your site is well designed

If your website is well structured, it shouldn't be a big problem update it to become compliant with the new cookie law - see [here].

I've completed the changes on three sites so far today - Well House Consultants, Well House Manor and Melksham Chamber of Commerce, and I have done considerable work on a fourth - First Great Western Coffee Shop, where we're having to do a change of forum agreement and make sure that people are informed about it, rather than just applying the changes to new visitors.

Let me tell you how I can do so many sites so quickly ;-)

1. On every page on the site, I have added extra code at the top:

  if ($_COOKIE["__utma"] or preg_match('/bot|crawl|spider/',$_SERVER[HTTP_USER_AGENT])) {
    $fill[cookalert] = "";
  } else {
    $fill[cookalert] = "<tr><td class='pageName'> • This site uses cookies - ".
      "see <a href=http://www.wellho.net/web2/cookies.php?which=chamber target=xss>".
      "[here]<a> for details.<br> • If you proceed, we will take that as ".
      "your consent to accept cookies<hr><td><tr>";

  }

In other words, if there isn't a Google Analytics cookie present, and the browser is not an automata, we need to ask the user. We do not want to ask spiders and crawlers, as we don't want to damage our search engine placement by adding in cookie text.

2. That text is displayed within the template:

  <table border="0" cellspacing="0" cellpadding="0">
  %cookalert%


and

3. Providing the information in the extra page at http://www.wellho.net/web2/cookies.php?which=chamber (this is the longest bit)

Since our site's well designed and uses common header scripts and templates, I haven't really had to change every page - just a single teplate and header file on each site. But if you've got a site that's not well structured, there could be an awful lot of work involved.

Here's the different home page on our training site displayed to a brand new visitor and a vistor who already has cookies set:



Here's the different home page on our hotel site displayed to a brand new visitor and a vistor who already has cookies set:



Here's the different home page on the Chamber of Commerce site displayed to a brand new visitor and a vistor who already has cookies set:



The "further information" pages are PHP scripted too (taking care to avoid any more cookies in the process) - the important thing is for them to be complete and understandable - link to them ... Chamber of Commerce, First Great Western Coffee Shop, Well House Consultants and Well House Manor.
(written 2012-06-02)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
H304 - PHP - DDA, Style and image handling
  [806] Check your user is human. Have him retype a word in a graphic - (2006-07-17)
  [1506] Ongoing Image Copyright Issues, PHP and MySQL solutions - (2008-01-14)
  [2031] Choosing from an image with an image map - (2009-02-08)
  [2343] World Flags in your PHP pages - (2009-08-10)
  [2539] Changing Images - (2009-12-17)
  [2715] Uploading an image, document or pdf via a browser (php) - (2010-04-10)
  [2917] Upload Image, Store in database, redisplay in browser. PHP and MySQL - (2010-08-12)

H117 - Security in PHP
  [345] Spotting a denial of service attack - (2005-06-12)
  [426] Robust checking of data entered by users - (2005-08-27)
  [920] A lion in a cage - PHP - (2006-11-10)
  [947] What is an SQL injection attack? - (2006-11-27)
  [1052] Learning to write secure, maintainable PHP - (2007-01-25)
  [1086] Injection attacks - safeguard your PHP scripts - (2007-02-20)
  [1323] Easy handling of errors in PHP - (2007-08-27)
  [1387] Error logging to file not browser in PHP - (2007-10-11)
  [1396] Using PHP to upload images / Store on MySQL database - security questions - (2007-10-19)
  [1482] A story about benchmarking PHP - (2007-12-23)
  [1542] Are nasty programs looking for security holes on your server? - (2008-02-17)
  [1679] PHP - Sanitised application principles for security and useability - (2008-06-16)
  [1694] Defensive coding techniques in PHP? - (2008-07-02)
  [1747] Who is watching you? - (2008-08-10)
  [1779] Injection Attacks - avoiding them in your PHP - (2008-08-31)
  [2025] Injection Attack if register_globals in on - PHP - (2009-02-04)
  [2628] An example of an injection attack using Javascript - (2010-02-08)
  [2688] Security considerations in programming - what do we teach? - (2010-03-22)
  [2939] Protecting your images from use out of context - (2010-08-29)
  [3210] Catchable fatal error in PHP ... How to catch, and alternative solutions such as JSON - (2011-03-22)
  [3698] How to stop forms on other sites submitting to your scripts - (2012-04-15)
  [3813] Injection Attacks - PHP, SQL, HTML, Javascript - and how to neutralise them - (2012-07-22)
  [4642] A small teaching program - demonstration of principles only - (2016-02-08)

A213 - Web Application Deployment - Commercial and Legal Aspects
  [142] Colour for access - (2004-12-06)
  [259] Responding to spam - (2005-03-27)
  [288] Colour blindness for web developers - (2005-04-22)
  [320] Ordnance Survey - using a 'Get a map' - (2005-05-22)
  [322] More maps - (2005-05-23)
  [532] Copyright - how much can I legally copy? - (2005-12-17)
  [746] Domain Listing Center and Domain Registry of America - (2006-06-06)
  [759] Watch your Google profile - (2006-06-13)
  [795] Remember a site's non-technical issues too - (2006-07-07)
  [876] Making pages clearer - easy Disability Discrimination Act Compliance - (2006-09-23)
  [994] Training on Cascading Style Sheets - (2006-12-17)
  [1054] UK legal requirements for your commercial web site - (2007-01-27)
  [1431] Getting the community on line - some basics - (2007-11-13)
  [1485] Copyright and theft of images, bandwidth and members. - (2007-12-26)
  [1486] Does anyone understand Lithuanian? - (2007-12-27)
  [1840] Validating Credit Card Numbers - (2008-10-14)
  [1937] Getting hold of the wrong end of the stick - (2008-12-12)
  [2140] Beware - giving copyright away when you upload a picture - Dogs Trust - (2009-04-25)
  [2252] Leaping dog, Leaping horse, copyright of old masters - (2009-06-20)
  [2592] Re-using our pictures - (2010-01-21)
  [2686] Freedom of Information - consideration for web site designers - (2010-03-20)
  [3016] The legal considerations of your web presence - revisited - (2010-10-26)
  [3104] Catering in Syracuse, the Saigon Cafe, stolen images and Christmas - (2010-12-25)
  [3168] Web Sites - Subject to Advertising Standards from 1st March - check your sites - (2011-02-13)
  [3745] Legal change - You need to obtain user consent if you use cookies on your website - (2012-06-01)
  [3746] Google Analytics and the new UK Cookie law - (2012-06-02)
  [4234] Change to Libel and Defamation laws from 1st January 2014 - (2013-12-31)
  [4283] Can a legitimate forum post become illegal a year later? - (2014-07-11)


Back to
Google Analytics and the new UK Cookie law
Previous and next
or
Horse's mouth home
Forward to
Not everyone has a computer - 9 more ways to learn about the Melksham Campus
Some other Articles
Public transport for international arrivals into Melksham
Matching opening hours to when customers can come in and buy
Removal of water safety equipment, and how to use a lifesaver ring
Not everyone has a computer - 9 more ways to learn about the Melksham Campus
An easy way to comply with the new cookie law if your site is well designed
Short Web Addresses for Melksham
Sunday - no longer a day of rest
Dysenni Valley, and nearby
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2021: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/3747_An- ... igned.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb