how to disable the command line of the web conole

28 views
Skip to first unread message

touhemi...@gmail.com

unread,
Oct 21, 2014, 12:19:00 PM10/21/14
to fir...@googlegroups.com
Hi,

the web console commande line is making some troubles on my web site and I'm looking for a solution to disable it on my web site.
I found a solution for google Chrome but not for firefox.

waiting for your help !

thanks in advance.

Jan Honza Odvarko

unread,
Oct 21, 2014, 12:29:18 PM10/21/14
to fir...@googlegroups.com
What do you mean by "web console", the Console panel in Firebug?

What kind of troubles is the command line making?

In any case, in Firebug you can disable the entire Console panel. Click the panel options icon (small black triangle next to the tab title) and uncheck "Enabled".

You can't disable just the command line.

Honza

Farshid Beheshti

unread,
Oct 21, 2014, 12:30:35 PM10/21/14
to fir...@googlegroups.com
On Tue, Oct 21, 2014 at 7:49 PM, <touhemi...@gmail.com> wrote:
Hi,

the web console commande line is making some troubles on my web site and I'm looking for a solution to disable it on my web site.
I found a solution for google Chrome but not for firefox.
Do you mean the Web Console of Firefox or Firebug Console panel?

Farshid

 

waiting for your help !

thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebug+u...@googlegroups.com.
To post to this group, send email to fir...@googlegroups.com.
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/cfc11c98-ee79-4010-940b-7cb058d5b429%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

touhemi...@gmail.com

unread,
Oct 21, 2014, 12:49:11 PM10/21/14
to fir...@googlegroups.com
yes that's what I mean the console pannel
but I want to disable it for the users of my web site not on my computer, so I need a code (javascript code for example) to disable it.

touhemi...@gmail.com

unread,
Oct 21, 2014, 12:50:09 PM10/21/14
to fir...@googlegroups.com
I'm looking for a solution for both of them firefox and firebug console panel

Jan Honza Odvarko

unread,
Oct 21, 2014, 1:00:36 PM10/21/14
to fir...@googlegroups.com


On Tuesday, October 21, 2014 6:49:11 PM UTC+2, touhemi...@gmail.com wrote:
yes that's what I mean the console pannel
but I want to disable it for the users of my web site not on my computer, so I need a code (javascript code for example) to disable it.
Firebug is not supporting API that would allow web pages to detect whether Firebug is installed or not.

Can you point us to the API you used for Chrome?

Honza

touhemi...@gmail.com

unread,
Oct 21, 2014, 1:07:08 PM10/21/14
to fir...@googlegroups.com
Chrome has its own console panel , I just found a javascript code and I add it to my web site code, as result when someone write something on the command line it shows him a message like "you can not use the commande line" and his code will not be executed.

Brian L. Matthews

unread,
Oct 21, 2014, 1:34:05 PM10/21/14
to fir...@googlegroups.com
Can you share that code?

Brian
--
You received this message because you are subscribed to the Google Groups "Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebug+u...@googlegroups.com.
To post to this group, send email to fir...@googlegroups.com.
Visit this group at http://groups.google.com/group/firebug.

Jan Honza Odvarko

unread,
Oct 22, 2014, 2:03:01 AM10/22/14
to fir...@googlegroups.com
Such feature is not on our roadmap.

Also, I am still unclear why blocking the command line on certain pages is useful.
(if it's making troubles to your page, it should rather be the page what needs a fix)

Honza


On Tuesday, October 21, 2014 7:34:05 PM UTC+2, blm wrote:
Can you share that code?

Brian

On 10/21/14 10:07 AM, touhemi...@gmail.com wrote:
Chrome has its own console panel , I just found a javascript code and I add it to my web site code, as result when someone write something on the command line it shows him a message like "you can not use the commande line" and his code will not be executed.

Le mardi 21 octobre 2014 18:00:36 UTC+1, Jan Honza Odvarko a écrit :


On Tuesday, October 21, 2014 6:49:11 PM UTC+2, touhemi...@gmail.com wrote:
yes that's what I mean the console pannel
but I want to disable it for the users of my web site not on my computer, so I need a code (javascript code for example) to disable it.
Firebug is not supporting API that would allow web pages to detect whether Firebug is installed or not.

Can you point us to the API you used for Chrome?

Honza

--
You received this message because you are subscribed to the Google Groups "Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebug+unsubscribe@googlegroups.com.

touhemi...@gmail.com

unread,
Oct 22, 2014, 4:10:28 AM10/22/14
to fir...@googlegroups.com

touhemi...@gmail.com

unread,
Oct 22, 2014, 4:12:50 AM10/22/14
to fir...@googlegroups.com
people can use javascript code to do things they are not allowed to do.


Le mercredi 22 octobre 2014 07:03:01 UTC+1, Jan Honza Odvarko a écrit :
Such feature is not on our roadmap.

Also, I am still unclear why blocking the command line on certain pages is useful.
(if it's making troubles to your page, it should rather be the page what needs a fix)

Honza

On Tuesday, October 21, 2014 7:34:05 PM UTC+2, blm wrote:
Can you share that code?

Brian

On 10/21/14 10:07 AM, touhemi...@gmail.com wrote:
Chrome has its own console panel , I just found a javascript code and I add it to my web site code, as result when someone write something on the command line it shows him a message like "you can not use the commande line" and his code will not be executed.

Le mardi 21 octobre 2014 18:00:36 UTC+1, Jan Honza Odvarko a écrit :


On Tuesday, October 21, 2014 6:49:11 PM UTC+2, touhemi...@gmail.com wrote:
yes that's what I mean the console pannel
but I want to disable it for the users of my web site not on my computer, so I need a code (javascript code for example) to disable it.
Firebug is not supporting API that would allow web pages to detect whether Firebug is installed or not.

Can you point us to the API you used for Chrome?

Honza

--
You received this message because you are subscribed to the Google Groups "Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebug+u...@googlegroups.com.

Jan Honza Odvarko

unread,
Oct 22, 2014, 6:51:17 AM10/22/14
to fir...@googlegroups.com
I see, thanks!

In any case this is a hack not a support coming from the Chrome devtools team.


> people can use javascript code to do things they are not allowed to do.

I see what you mean, but yes - people can use JS code to do anything (especially web developers) and they can also workaround the hack described above.

Honza

Christ van Willegen

unread,
Oct 22, 2014, 1:14:32 PM10/22/14
to fir...@googlegroups.com
On Wed, Oct 22, 2014 at 12:51 PM, Jan Honza Odvarko <odv...@gmail.com> wrote:
> I see what you mean, but yes - people can use JS code to do anything
> (especially web developers) and they can also workaround the hack described
> above.

Someone who wanted to circumvent this can use Greasemonkey (in
FireFox) to run whatever Javascript they wanted...

Christ van Willegen

Sebastian Zartner

unread,
Oct 23, 2014, 1:58:36 AM10/23/14
to fir...@googlegroups.com
Point of the posts before is, to be safe against hacking, you always have to handle invalid input on the server side, not (only) the client side.

Sebastian

On Wednesday, October 22, 2014 7:14:32 PM UTC+2, Christ van Willegen wrote:
Reply all
Reply to author
Forward
0 new messages