Osclass Support Forums

General osclass questions => Feature request => Topic started by: Nightnoir on November 06, 2022, 11:22:05 AM

Title: Hide source code
Post by: Nightnoir 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/ (https://it.wordpress.org/plugins/wp-hide-security-enhancer/), I await info thanks
Title: Re: Hide source code
Post by: MB Themes on November 06, 2022, 01:06:58 PM
Hiding something (path, folder, ...) does not improve security.
Title: Re: Hide source code
Post by: Nightnoir on November 06, 2022, 01:15:37 PM
I wasn't interested so much in security, but in hiding the source code
Title: Re: Hide source code
Post by: MB Themes on November 06, 2022, 01:55:07 PM
I suppose you mean masking osclass
Title: Re: Hide source code
Post by: Lida phanora 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


Title: Re: Hide source code
Post by: MB Themes on November 08, 2022, 01:36:54 PM
@Lida
this is currently not possible, maybe there will be plugin in future to achieve that.
Title: Re: Hide source code
Post by: Lida phanora 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
Title: Re: Hide source code
Post by: Rick 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.
Title: Re: Hide source code
Post by: Lida phanora on December 21, 2022, 01:47:03 PM
a lot of users looking plugin to manage this since 2018 but still not exit
Title: Re: Hide source code
Post by: Nightnoir on December 22, 2022, 08:32:51 AM
@MB Themes what hope do we have that this plugin comes out?
Title: Re: Hide source code
Post by: MB Themes 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.
Title: Re: Hide source code
Post by: A.M 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/ (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>