Category: Work/Technical

  • Website owners beware – terrorist attacks on your websites too

    Its hard to ignore the current disputes between ISIS and the rest of the world. Every news program and social feed contains links to videos and articles about this horrible ordeal, and it looks like its now also spread to the digital world.

    I was messaged by a customer who said that their website had been hacked. When I visited the website I was greeted by the message;

    Hacked BY MuhmadEmad ./we are peshmarga

    MuhmadEmad seems to just be the persons name, but peshmarga (peshmerga) is a term used by Kurds to refer to “Armed Kurdish Fighters” which – as far as I can work out – should be people on our side, so im really confused as to why they would hack a little wordpress website that has nothing to do with this conflict.

    I’m still looking into exactly what happened but it seems to have been a Gravity Forms exploit of some description – some files within uploads/gravity_forms/tmp were VERY dodgy so they’ve been downloaded for closer inspection and removed from the site.

    Ive also updated all the plugins, themes and the wordpress core. Passwords for all wordpress user accounts, FTP and MySQL users changed too.

    If you’re having trouble with a hacked website then contact me through twitter or something and ill help as best I can.

  • Chill the hell out about “Your Data”

    Every single day I hear a news report about how some new app is stealin your interwebz or how some new “thing” poses a danger to information stored about you on the web, and within offline systems like the NHS.

    This morning on the radio they were talking about a new scheme that the NHS are starting to roll out that allows the data from GP’s (your data! :P) to be used to improve healthcare and help improve medical research.

    Its worth noting at this point that your personal identity information IS NOT part of this data – only anonymous info about your medical history that is presented to them without being tied to you or any person.

    The radio presenter interviewed a few people who said that due to their “unusual” medical history, anyone looking at their data would be able to identify them without the need for it to have their name or anything next to it.

    I’m genuinely amazed people put up a fight with stuff like this. Why wouldn’t you want the info from your doctors being shared with the hospital? And shared with researchers that might be able to tell you you are going to get cancer at a certain age as they’ve been able to build amazing algorithms that analyze your family medical history, spot trends and report things before they happen?

    Its being able to harvest, analyse and utilise “data” that has brought us into the amazing technological age that we live in today. Google can assist you in your day-to-day life just because of the data you give them when you use their services. They’re not spying on you for sh!ts and grins, they are trying to make your experience of using their services mind blowing so you tell your friends and keep using them!

    It may just be me, but when I search Google on my laptop for a company that i’m going to visit – then get my phone out and Google Now has already loaded a tile up so that with one click, I can load navigation to the place I just searched for – my mind is blown every time. This is an example of Google “spying on you” and as you can see, its not scary at all 🙂

    Don’t get me wrong, there are bad guys out there that do want to trick you but if you stick to well known apps and websites and ensure you have virus protection and scan for malware on your PC – and only install apps on your phone from the Google Play store you should be OK.

    The next time you hear a news story about some big company stealing info, texting adverts to your mates behind your back or recording your private conversations without you even realising (Facebook messenger!) get in touch with someone who is in the know before you start ditching amazing services and products from awesome companies.

    PS Facebook Messenger is fine too – stop being dingbats!

  • Internet killed the [everything] star

    I often hear people talking about how “the internet has killed the high street” and to be honest, i’m getting really sick of it!

    The internet didn’t kill the highstreet – they did that all by themselves!

    In actual fact the high street could massively benefit from the internet if the town centre businesses started using it more to their advantage! Take Argos for example – they could have quite easily given up when the internet started picking up pace – as no one wanted their catalogs any more! But no, instead, they modified their business model and embraced the internet – now their “Click and Collect” model is being copied by Tesco, Asda and everyone else in-between.

    The internet has also made things like fashion, and the ever changing face of it, more accessible to the world. People know what their favorite celeb is wearing as they see it on twitter, and if the high street stores could react as quick as online stores do – they could still be in with a chance of getting the sale. People still like to try clothes on after all!

    The main issues as i see them are as follows

    • Not enough help from the councils and governments – give people free shops for 3/6/9 months and see if they can make it work. They’re all sat empty, so why not?
    • Business overheads – someone who employs 10 people cant compete with someone who sells from their bedroom – not a lot can be done to fix this apart from the bricks and mortar retailers making their offering better!
    • Being idiots – Making silly choices, bad advertising decisions and generally being crap at running a business. I have friends in business and they all do well – its because my friends are not idiots.

    Financially, the economy is on the rise and things are starting to look peachy again – if you have a business idea, if you want to open a shop selling something and its burning a hole in your head – then just go for it!

    What are you waiting for? 🙂

  • 301 Redirects – How to redirect a website – Lots of Methods!

    301 Redirects

    A 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It’s not that hard to implement and it can preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it’s the safest option.

    The code “301” mean the page has “moved permanently”.

    Here are some examples;

    IIS Redirect

    • In internet services manager, right click on the file or folder you wish to redirect
    • Select the radio titled “a redirection to a URL”.
    • Enter the redirection page
    • Check “The exact url entered above” and the “A permanent redirection for this resource”
    • Click on ‘Apply’

    ColdFusion Redirect

    <.cfheader statuscode=”301″ statustext=”Moved permanently”>
    <.cfheader name=”Location” value=”http://www.NEW-URL-HERE.com”>

    PHP Redirect

    <?
    Header( “HTTP/1.1 301 Moved Permanently” );
    Header( “Location: http://www.NEW-URL-HERE.com” );
    ?>

    ASP Redirect

    <%@ Language=VBScript %>
    <%
    Response.Status=”301 Moved Permanently”
    Response.AddHeader “Location”,”http://www.NEW-URL-HERE.com/”
    %>

    ASP .NET Redirect

    <script runat=”server”>
    private void Page_Load(object sender, System.EventArgs e)
    {
    Response.Status = “301 Moved Permanently”;
    Response.AddHeader(“Location”,”http://www.NEW-URL-HERE.com”);
    }
    </script>

    JSP (Java) Redirect

    <%
    response.setStatus(301);
    response.setHeader( “Location”, “http://www.NEW-URL-HERE.com/” );
    response.setHeader( “Connection”, “close” );
    %>

    CGI PERL Redirect

    $q = new CGI;
    print $q->redirect(“http://www.NEW-URL-HERE.com/”);

    Ruby on Rails Redirect

    def old_action
    headers[“Status”] = “301 Moved Permanently”
    redirect_to “http://www.NEW-URL-HERE.com/”
    end

    Redirect Old domain to New domain using htaccess redirect

    Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.NEW-URL-HERE.com/$1 [R=301,L]

    Please REPLACE www.NEW-URL-HERE.com in the above code with your actual domain name.

    In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite module enabled.

    Redirect to www using htaccess redirect

    Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.NEW-URL-HERE.com
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

    Please REPLACE domain.com and www.NEW-URL-HERE.com with your actual domain name.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite module enabled.

    How to Redirect HTML

    Please refer to section titled ‘How to Redirect with htaccess’, if your site is hosted on a Linux Server and ‘IIS Redirect’, if your site is hosted on a Windows Server.