Implementation of disble-devtool library into OSSN. The
disable-devtool disables all access to the devtools, preventing 'code porting' via the devtools
This library has the following features:
After enabling the component, open the Disable Developer Tool option in the Config menu and set the options as you wish.
The component was tested in OSSN 6.1 and 6.4, free and premium versions. Maybe some adjustments are required in older versions. In this case, use at your own risk.
If you want to help me to make more components, click on the button down bellow and buy me a coffee. It's up to you how much coffee I'll drink :-)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Go to Red Crested License to read the last version of our terms.
I added seo tags with the seo component https://www.opensource-socialnetwork.org/component/view/3687/seo-with-open-graph-and-meta
When activating your component, the seo tags are not visible over dev tools anymore, that coud be a problem while indexing
Just one thing:
after changing secret, key or one of the checkboxes, the component is not flushing cache automatically, maybe consider this as a feature?
Working for me on OSSN 7.2
Dominik and Michael
Could you test the new version?
Tested with latest Chrome and Firefox on Linux:
Result: continuous page reloads until memory gets exhausted
(you'd better close the tab in time before that happens) 😅
Works now - F12 (devtools) and right click is disabled
But you have to clear the Cache manually, is that correct?
And I found a bug, when you activate "Disable the right-click menu" and then open the devtools from google chrome menu, it opens and the site reloads endlessly
Dominik
Install the latest version and let me know if works
no, I installed it a few days ago
Was the component installed today?
I'll review on this code in a few days.
It produces some error
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "tkname" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 25)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "key" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 32)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "disableMenu" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 38)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "clearLog" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 43)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "disabelSelect" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 48)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "disableCopy" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 53)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "disableCut" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 58)
[01-Jun-2023 10:34:23 UTC] PHP WARNING: 2023-06-01 10:34:23 (UTC): "Attempt to read property "disablePaste" on bool" in file /home/queermeet/publichtml/components/DisableDevTool/plugins/default/forms/DisableDevTool/admin/settings.php (line 63)
[01-Jun-2023 11:48:01 UTC] PHP WARNING: 2023-06-01 11:48:01 (UTC): "Attempt to read property "name" on bool" in file /home/queermeet/public_html/libraries/ossn.lib.admin.php (line 245)