Support Forums - Classified Ads Script Osclass
General osclass questions => Feature request => Topic started 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
-
Hiding something (path, folder, ...) does not improve security.
-
I wasn't interested so much in security, but in hiding the source code
-
I suppose you mean masking osclass
-
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
-
@Lida
this is currently not possible, maybe there will be plugin in future to achieve that.
-
@Lida
this is currently not possible, maybe there will be plugin in future to achieve that.
Very useful thank you
-
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.
-
a lot of users looking plugin to manage this since 2018 but still not exit
-
@MB Themes what hope do we have that this plugin comes out?
-
There will probably new feature in Osclass core that will support this.
However, it may require updates in plugins & theme.
-
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:
<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>