Website designing is an awesome thing and it requires a lot of hard work and sometimes months of programming or coding to complete a client’s website. If you are a freelancer or a small company, you are about to experience a situation where you have to deal with a fraudulent client at some point of time. A negative situation might arise in both of your’s deal and the client might refuse to pay you or does not take your calls. This is where KillSwitch CSS Method comes into effect.
If such case happens there is nothing much you can do if you don’t have access to client’s server anymore through ftp or cpanel. Some clients change their hosting or cpanel passwords and then they also change ftp details. In such cases you are left with nothing. You cannot do anything to take down the website.
If you are going through same problem don’t worry you are at the right place. We will ensure that you get your payments from the clients. There will be no more harassment of developers from the clients after working hard for their website. Below are some simple steps to follow this procedure for Manual KillSwitch CSS Method:
On client website do this
Whenever you work for a client remember to input the given code in the head section of the clients web page. Ideally you can target the index.html or index.php page since this are the entry points of the website and this are the pages that will make client down if they don’t load. The code is as follows:
Code – 1
The above code needs to be put in the <head> code … </head> section of the page.
On your hosting do this
In the root directory of your hosting create a folder named hackfolder. Now create a file named hack.js. Now copy the below line of code (Code – 2) in the hack.js file and place hack.js in the hackfolder. The code written below is commented. It will run after the comments are removed(//). Remember you have to do this only in the extreme condition when you are sure that the client won’t pay the money at any cost.
Code – 2
The above code if activated will make the body element to show as display:none; and the client’s website will become blank even if he tries to refresh it.
Important Note – The words hackfolder and hack.js are used only for demo purposes so that you can understand what we are trying to convey. Please don’t use this words otherwise client or his new developer might track it easily. You can give some other name of your choice but make sure names should match at both ends(Code – 1 & Code – 2). You can also create multiple levels of folders in your hosting if you want to, but make sure that the same path is given in the url part of Code – 1.
Pros of this technique
Cons of this technique
Nothing is perfect and so is this Manual KillSwitch CSS technique. Yes, even this technique has some loopholes. If a client or his new developer find out the code you have kept in his head section he might remove the code. Then this technique will fail completely.
How to safeguard your technique
We know that our technique Manual KillSwitch CSS is not 100% perfect so we can take some measures to make it as powerful as possible. The first thing you can do is don’t write the code(Code – 1
) directly in the head section of the clients page. Input it in the already present js files. This will help you a lot because most of the js files are very long. People don’t check this long files. Another way is to make a separate js file and give it some common name like theme.js. It will ensure that no one doubt’s the file(You will need to give path of theme.js in your page’s head section).
Method for WordPress
You can also use this technique in wordpress. In this case the use of Code – 2 will be same but the use of Code – 1 will be different. You have to login to your wordpress wp-admin. Now go to Appearance>Editor. Now on your right hand side you will see many files names vertically. Locate theme-js.php file. Open the theme-js.php file and go to the last line and place our Code – 1(As explained in the image below) and click on Update File button.
The best situation is to discuss with your client. Make him understand the level of hard work you have done for designing the site. Try to convince him for the payout. But if the situation goes wrong then there is no method left but to apply our hack method. Most clients fear to give 100% money before the work is closed. We need to keep this thing in mind. This technique shouldn’t be applied on such clients. You can place the code when you develop clients website. You can make use of KillSwitch CSS in the extreme condition when client refuses to pay even after all the work has been done.
How to activate the technique?
You just have to remove the comment(//) from Code – 2 if you want to activate the technique and make the website blank. If the client pays you, you can again put the comment(//) before the code so that it becomes inactive. Well, this is the best use of this technique as you are in control. Important thing is you are doing it from your end(Through your hosting) even if the client changes his passwords or credentials.
Photo Credits – Pixabay