Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

can i deny the firebug extention to protect my .js files on my website? how can i do that?

  • 2 wótegronje
  • 3 maju toś ten problem
  • 3 naglědy
  • Slědne wótegrono wót a1ex_sinner

more options

In the tab "html" witch in Firebug panel everyone who want's can see the content of my javascript.

I did like this, but the Firebug still tricking script.

function do (style) { if(navigator.userAgent.indexOf('MSIE')==-1) { var scr=document.createElement('script'); scr.type='text/javascript'; scr.src='js/style/'+style+'.js'; } else { var scr=document.createElement("<script type=\"text/javascript\" src=\"js/style/"+style+'.js'+"\"></"+"script>"); } document.documentElement.getElementsByTagName('HEAD')[0].appendChild(scr); }

do("fill"); do("fcats");

In the tab "html" witch in Firebug panel everyone who want's can see the content of my javascript. I did like this, but the Firebug still tricking script. function do (style) { if(navigator.userAgent.indexOf('MSIE')==-1) { var scr=document.createElement('script'); scr.type='text/javascript'; scr.src='js/style/'+style+'.js'; } else { var scr=document.createElement("<script type=\"text/javascript\" src=\"js/style/"+style+'.js'+"\"></"+"script>"); } document.documentElement.getElementsByTagName('HEAD')[0].appendChild(scr); } do("fill"); do("fcats");

Wšykne wótegrona (2)

more options

It's hopeless. Because the JavaScript code must be sent to the browser in order to run, you can't prevent sophisticated users from seeing it.

Firebug isn't even necessary: the page source can be viewed by pressing Ctrl+u and if the JavaScript is in a separate file, clicking the link to the file in the <script> tag will display it. When you add the script dynamically, it still can be viewed using the Web Developer extension or the DOM Inspector extension. The file probably is in the cache as well.

Many people "minify" their script code, which makes it extremely difficult to read. However, some people still can make sense of it. (I'm not one of them.)

What's so important to hide, anyway?

more options

Yes, it's very important to hide it.

I did some settins in .htaccess so if someone trying to access script by using the path nothing is displaying. Also this method doesn't show the content inside <script...>" and "</script>" when you viewing the page source (except Firebug).

Cache is denied by http-headers.

I already thought about the last one you wrote about. I'l try to minify the code later, but now I want to protect it in other availible ways. Really, very bulky stuf and it needs more protection.

About the extention (how to block). Founded this article but there is no such property (at least in last version of Firebug) window.console.firebug = undefined.

Wót a1ex_sinner změnjony