Jump to content

Prevent stealing .html designs


JeViCo

Recommended Posts

Posted
14 minutes ago, Simple01 said:

Look just make your html files with cache="false"

it works only with scripts

3 hours ago, IIYAMA said:

SASS is unrelated. (It is a kind of advanced css format that will be converted to css after being compiled)

ok i understand now

 

3 hours ago, IIYAMA said:

Write with JavaScript?

https://wiki.multitheftauto.com/wiki/ExecuteBrowserJavascript

Ofcourse you can't protect it 100%, but atleast you can keep your HTML files almost empty. Making it beginner proof.

Maybe. But i'm not sure that people can use it several times. Even if i download it again, someone'll steal it while menu is open. Also i think that people'll not able to interact with html if it doesn't exists(tried with fileDelete)

  • Discord Moderators
Posted

The way I did it was I injected everything from LUA with executeBrowserJavaScript.
Nice and easy solution.(You can inject everything with JS actually, css, JS, HTML)

  • Moderators
Posted

Html/css/js is not made to be private.

 

But what you can do:

If you want to protect the interaction, you will have to write it with some more back-end or wire the JavaScript with lua.

  • Discord Moderators
Posted

You can't change the css/js/html files because their hash is checked before load(.html are checked by MTA, but you can also add check for other's(js, and css with the 'hash' attribute).

Posted
4 hours ago, JeViCo said:

it works only with scripts

ok i understand now

 

Maybe. But i'm not sure that people can use it several times. Even if i download it again, someone'll steal it while menu is open. Also i think that people'll not able to interact with html if it doesn't exists(tried with fileDelete)

It doesn't work only with scripts.

Posted
17 hours ago, Simple01 said:

Forget what I've said. You are right.

ok

16 hours ago, Dimos7 said:

Try put download to false in meta

come on, we've just finished talking about that

Posted
On 18/8/2018 at 16:36, JeViCo said:

ok

come on, we've just finished talking about that

Embed the html code in Lua, then create a temporal file into the clientside and after being used you delete it. But you can also try to execute that code directly without creating any file.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...