Jump to content

How to block access to file via http://IP:Port/uni-1.90.0.1528/codemirror-0.8/js/Ext.ux.CodeMirror.js


irigsoft

Recommended Posts

Hello.

I want to disable access to a specific file from the system directory or Obfuscate the files ?

My case:

1. The application is standalone

2. I have disabled access to http: // IP: Port / uni-1.90.0.1528 / or other directories except http: // IP: Port / temp /
3 If someone parses the html, he will get the path to all js and css files

I want to disable the opening of these files from a link such as: http: // IP: Port / uni-1.90.0.1528 / codemirror-0.8 / js / Ext.ux.CodeMirror.js
These files are outside my application folder.
They are even in the system Windows directories.

 

The question is how do I block access to these files?

 

I tried to disable them in UniGUIServerModuleHTTPCommand or UniGUIMainModuleHandleRequest, but these events run after the file is already displayed in the browser.

 

Can we use obfrustration techniks like this: https://www.creativebloq.com/how-to/hide-your-javascript-code-from-view-source

or methods like this: https://stackoverflow.com/questions/6869312/how-do-i-hide-javascript-code-in-a-webpage

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...