Step::1 Login to your cPanel and click on File Manager
Step::2 Go inside public_html and create a new file i.e “testing.html” You can create a new html file with any name.
Step::3 Right click over the newly created file and choose the Edit option
Step::4 Insert the code given below
<html> <head> <style> body, html{ -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } </style> </head> <body oncontextmenu="return false;"> Here is my code. Select me. </body> </html>
Step::5 Click on Save changes button and close the editor.
Test the file in a new tab from your web browser. You will find that your selection feature has been disabled. Infact you will not be able to select any line on your website not even by dragging and dropping.
Visit our Blog for more details. You can also watch the video here.