protect javascript ????

They have: 23 posts

Joined: Jun 1999

hi,

i have some javascripts files (with .js) in my /javas/ directory...

now i want to protect from downloading this files, when someone point to the file...
so that only the files can be loaded from my pages

any soluations???

------------------

They have: 297 posts

Joined: Apr 1999

No.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

As Malte says, no way jose.
If it's your server, you have a DBMS, and know how to code it, you might consider placing everything in the DBMS, but then you would have to write code to extract it, parse it, execute it, and still have to worry about someone crashing your firewall and fiddling with your files.

There is nothing you, I, or anyone else can write in javascript that is worth the hassle of hiding.

Besides how can I learn anything if everyone hides their code? Smiling

Vinny GrassBlade: cut&paste javascript Where you are encouraged to view source, download, modify and otherwise make my code yours. Of course, the explanations are mine Smiling
want to give me credit -- fine; don't -- fine again

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.