g-1
Создатель
- Регистрация
- 30 Апр 2016
- Сообщения
- 14
- Реакции
- 13
I use jquery and css to do this, and prevent the unwanted copy of my content.
For sure it is not the best ( and it can be easily avoided viewing the HTML code) but I've read that using different methods could hurt your web page ranking.
tis is how I do :
add this code in the page you want to protect ( ex. product page)
and then add this to your css file :
hope this helps.
For sure it is not the best ( and it can be easily avoided viewing the HTML code) but I've read that using different methods could hurt your web page ranking.
tis is how I do :
add this code in the page you want to protect ( ex. product page)
Код:
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
//// Disable right click
jQuery(document).bind('contextmenu', function (e) {
e.preventDefault();
// alert('Right Click is not allowed');
});
</script>
and then add this to your css file :
Код:
body {
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none; }
hope this helps.