How To Disable Right Click and Content Text Selection in Your Blogger and Website

Some days ago, i was with my girl friend in her college and by chance we start discussion of our websites and she told me with very disappointment that her website's content is being copied by other peoples and then i satisfied her that i will find a solution as we all know that almost all tips websites are providing script to disable right click in webpage but none is providing script to disable content selection so it was a problem before my this post but not now i presented this script to my girl friend and do you know my reward was a 5 minutes long wall smooth kiss.........



Disable Right Click::


To disable right click in your blogger just

  1. Go to blogger layout Page
  2. Add any where HTML/JAVA Script widget
  3. Paste the below given script and hit save
<SCRIPT language=JavaScript>
<!-- http://yumtricks.blogspot.com -->
var message = "function disabled";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } }
document.onmousedown = rtclickcheck;
</SCRIPT>

Disable Content Selection:


If you want to Disable content selection by mouse in your webpage then

  1. Go To Layout of your blog
  2. Add and HTML/Java Script Widget
  3. Paste the given below script and Hit Save 
 <script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>


Further Questions, Post in Comments...........
 

3 comments


Anonymous
October 6, 2013 at 10:48 PM

Everything is very open with a really clear explanation of the challenges. It was really informative. Your website is very useful. Thank you for sharing!
website design

April 1, 2018 at 9:47 PM

Right here you could consistently pick solutions that entail actual USA Facebook Suches as for adding charm into your facebook ID. buy us facebook likes

Leave Your Comments !

Recommended Post Slide Out For Blogger