Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   disalow view page source (http://www.bvlist.com/showthread.php?t=2964)

wMan 7th July 2009 09:47

disalow view page source
 
hove to disalow users to see page source using ctrl plus u ?
is there any mod ?
can i set mod to ban users who request page source ore web page can't know who are trying to do that ?
p.s.i woud like to put on this mod as protection of smartassess who says "hey ur code have error there and there " like i don't know that :wallbash::fire:

Phogo 7th July 2009 13:38

There is a disable right click javascript mod, but that mod is completely useless.
Firstly because you can always view the source via, the top View, View Source also you don't actually see the php you only see html.
and there is this mod in the tbdev forums.

oh and ps

Don't you want your errors reported so you can fix them?

wMan 7th July 2009 14:05

Quote:

Originally Posted by phogo (Post 13095)
Don't you want your errors reported so you can fix them?

thats the funieest part reports are useles i have tools what reports me if there is a bug ore error
but i can see full js if i directly accses it hove to stop that ?
same with css :sos:

joeroberts 7th July 2009 15:06

you should put your java scripts in its own file and use
PHP Code:

echo "<script type=\"text/javascript\" src=\"your.js\"></script>\n"

that way it dont show the direct java they would have to look at it from that page
and same with your css info dont add it to the files creat a .css file and only put your css info there
but other then that the source is always viewable one way or another because it has to be or it wouldnt work at all.

wMan 7th July 2009 15:16

1 Attachment(s)
Quote:

Originally Posted by joeroberts (Post 13105)
you should put your java scripts in its own file and use
PHP Code:

echo "<script type=\"text/javascript\" src=\"your.js\"></script>\n"

that way it dont show the direct java they would have to look at it from that page
and same with your css info dont add it to the files creat a .css file and only put your css info there
but other then that the source is always viewable one way or another because it has to be or it wouldnt work at all.

didn't get this like i have file default.css so i need to add to it what ?
because when i put in my browser localhost/default.css i got white page and all my css in it same with js
see screen

joeroberts 7th July 2009 15:18

you can not stop that because you have to be able to see the sources or your site would never work

wMan 7th July 2009 15:20

oh then i understand
thanks


All times are GMT +2. The time now is 08:37.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.