*

Nightnoir

  • **
  • 29 posts
Hide source code
« on: November 06, 2022, 11:22:05 AM »
hi, I wanted to know if it was possible to hide the source code of the osclass site, via plugin or otherwise.
A bit like this plugin does on wordpress https://it.wordpress.org/plugins/wp-hide-security-enhancer/, I await info thanks

*

MB Themes

Re: Hide source code
« Reply #1 on: November 06, 2022, 01:06:58 PM »
Hiding something (path, folder, ...) does not improve security.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Nightnoir

  • **
  • 29 posts
Re: Hide source code
« Reply #2 on: November 06, 2022, 01:15:37 PM »
I wasn't interested so much in security, but in hiding the source code

*

MB Themes

Re: Hide source code
« Reply #3 on: November 06, 2022, 01:55:07 PM »
I suppose you mean masking osclass
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Lida phanora

  • **
  • 25 posts
Re: Hide source code
« Reply #4 on: November 08, 2022, 01:35:47 PM »
Hello sir
Yes we want to hide osclass text in url or can change
Oc-include , oc-content folder like change oc-admin

We want to change upload image folder also



*

MB Themes

Re: Hide source code
« Reply #5 on: November 08, 2022, 01:36:54 PM »
@Lida
this is currently not possible, maybe there will be plugin in future to achieve that.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Lida phanora

  • **
  • 25 posts
Re: Hide source code
« Reply #6 on: November 11, 2022, 06:52:20 AM »
@Lida
this is currently not possible, maybe there will be plugin in future to achieve that.

Very useful thank you

*

Rick

  • ***
  • 47 posts
Re: Hide source code
« Reply #7 on: December 17, 2022, 11:23:52 AM »
https://forums.osclasspoint.com/osclass/mask/

It's possible and easy with notepad plus.
But ptoblem is plugins stop working right now.. will update with picture how to if we solve this.

*

Lida phanora

  • **
  • 25 posts
Re: Hide source code
« Reply #8 on: December 21, 2022, 01:47:03 PM »
a lot of users looking plugin to manage this since 2018 but still not exit

*

Nightnoir

  • **
  • 29 posts
Re: Hide source code
« Reply #9 on: December 22, 2022, 08:32:51 AM »
@MB Themes what hope do we have that this plugin comes out?

*

MB Themes

Re: Hide source code
« Reply #10 on: December 22, 2022, 10:02:31 AM »
There will probably new feature in Osclass core that will support this.
However, it may require updates in plugins & theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

A.M

  • ***
  • 34 posts
Re: Hide source code
« Reply #11 on: January 16, 2023, 04:22:42 AM »
hi, I wanted to know if it was possible to hide the source code of the osclass site, via plugin or otherwise.
A bit like this plugin does on wordpress https://it.wordpress.org/plugins/wp-hide-security-enhancer/, I await info thanks


Hello Guys,,,

i think i can share with you this code i use it...

sure not perfect and professional that much, but at least can help you in the current time to hide your sourc code temporary untill Osclass team can find good solution, plugin or something, so this the code, insert it inside the theme >>> head.php:

Code: [Select]
<script>
      // take body to change the content
const body = document.getElementsByTagName('body');
// stop keyboard shortcuts
window.addEventListener("keydown", (event) => {
  if(event.ctrlKey && (event.key === "S" || event.key === "s")) {
     event.preventDefault();
     body[0].innerHTML = "sorry, you can't do this ⚠️"
  }
  if(event.ctrlKey && (event.key === "E" || event.key === "e")) {
     event.preventDefault();
     body[0].innerHTML = "sorry, you can't do this ⚠️"
  }
  if(event.ctrlKey && (event.key === "I" || event.key === "i")) {
     event.preventDefault();
     body[0].innerHTML = "sorry, you can't do this ⚠️";
  }
  if(event.ctrlKey && (event.key === "J" || event.key === "j")) {
     event.preventDefault();
     body[0].innerHTML = "sorry, you can't do this ⚠️";
  }
  if(event.ctrlKey && (event.key === "K" || event.key === "k")) {
     event.preventDefault();
     body[0].innerHTML = "sorry, you can't do this ⚠️";
  }
  if(event.ctrlKey && (event.key === "U" || event.key === "u")) {
     event.preventDefault();
     body[0].innerHTML = "sorry, you can't do this ⚠️";
  }
});
// stop right click
document.addEventListener('contextmenu', function(e) {
  e.preventDefault();
});
</script>
« Last Edit: January 16, 2023, 04:25:13 AM by A.M »
iloveOsclass