Trying to figure out how to “hide” images and source codeChange the image source on rollover using jQueryChanging the image source using jQueryUsing regular expressions to extract the first image source from html codes?How to break out of jQuery each LoopHow do I strip all spaces out of a string in PHP?How to load images dynamically (or lazily) when users scrolls them into viewWhere can I find some open source code compressorsHow to hide the background image of div already hidden by jqueryHow to find what code is run by a button/element in Chrome using Developer ToolsCall a PHP function from HTML in the same document to hide image code

Count rook moves 1D

Were the women of Travancore, India, taxed for covering their breasts by breast size?

Is there any reason to change the ISO manually?

Confusion in understanding control system?

pruning subdomains of other domains in a file using script (bash, awk or similar)

Has Rey's new lightsaber been seen before in canon or legends?

Why do many programmers abstain from using global variables?

slowest crash on the Moon?

What is the difference between "wie" and "nach" in "Klingt wie/nach..."

Too many SOQL Queries when inserting records

About ratio test

Tiny image scraper for xkcd.com

Why do we need explainable AI?

Why would a Intel 8080 chip be destroyed if +12 V is connected before -5 V?

What is the most likely cause of short, quick, and useless reviews?

co-son-in-law or co-brother

Time to call the bluff

How do I stop making people jump at home and at work?

Why did the Joi advertisement trigger K?

Strange formulas that gave rise to Koszul duality

What would a biological creature need in order to see the future?

Which is the best password hashing algorithm in .NET Core?

What did Boris Johnson mean when he said "extra 34 billion going into the NHS"

A rather curious equality: is this true?



Trying to figure out how to “hide” images and source code


Change the image source on rollover using jQueryChanging the image source using jQueryUsing regular expressions to extract the first image source from html codes?How to break out of jQuery each LoopHow do I strip all spaces out of a string in PHP?How to load images dynamically (or lazily) when users scrolls them into viewWhere can I find some open source code compressorsHow to hide the background image of div already hidden by jqueryHow to find what code is run by a button/element in Chrome using Developer ToolsCall a PHP function from HTML in the same document to hide image code






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm in the process of (slowly) learning how to make my websites more secure. I was checking out D&D Beyond, and noticed a few things I've never seen before, and I would like to learn more about.



  1. Portions of the source code don't show up when you View the Source.

It's hard to explain. I tried to explain it in a different post, and I got a ton of snarky remarks. I'm telling you, I know what I saw. I would like to know how this is possible and how I can replicate it.



I typically write in PHP/JQuery, so I'd primarily like to learn more using those languages.



Example:
You can create a Character using their Character Builder, then view your Character Sheet. The main portion of your character's stats are enclosed in a very large parent div: ".character_sheet"



If you MANUALLY save your Character Sheet to your Desktop, you can see the HTML for this section. If you inspect this section in Firefox, you can also see the data. However, if you try to CTRL+U while in the browser, the HTML in this section does not appear. It also will not appear if you try to curl/fopen/file_get_contents



Additionally, images are not visible by normal means.
For Example: I am aware of how to disable right-clicking on a website, but if someone wanted to take my images, all they'd have to do is open my source code and look at the image url and save it from there.



On the D&D Beyond site, I can bring up Firefox's web inspector where an Image SHOULD be, take a look at the CSS, and... nothing. No link to an image, where one should be. I don't know how they're getting images to appear without css/html. I'd be very interested to know how this is done.



If anyone has any insight/guesses/etc and can point me in the right direction to learn some more, I'd really appreciate it!










share|improve this question






























    2















    I'm in the process of (slowly) learning how to make my websites more secure. I was checking out D&D Beyond, and noticed a few things I've never seen before, and I would like to learn more about.



    1. Portions of the source code don't show up when you View the Source.

    It's hard to explain. I tried to explain it in a different post, and I got a ton of snarky remarks. I'm telling you, I know what I saw. I would like to know how this is possible and how I can replicate it.



    I typically write in PHP/JQuery, so I'd primarily like to learn more using those languages.



    Example:
    You can create a Character using their Character Builder, then view your Character Sheet. The main portion of your character's stats are enclosed in a very large parent div: ".character_sheet"



    If you MANUALLY save your Character Sheet to your Desktop, you can see the HTML for this section. If you inspect this section in Firefox, you can also see the data. However, if you try to CTRL+U while in the browser, the HTML in this section does not appear. It also will not appear if you try to curl/fopen/file_get_contents



    Additionally, images are not visible by normal means.
    For Example: I am aware of how to disable right-clicking on a website, but if someone wanted to take my images, all they'd have to do is open my source code and look at the image url and save it from there.



    On the D&D Beyond site, I can bring up Firefox's web inspector where an Image SHOULD be, take a look at the CSS, and... nothing. No link to an image, where one should be. I don't know how they're getting images to appear without css/html. I'd be very interested to know how this is done.



    If anyone has any insight/guesses/etc and can point me in the right direction to learn some more, I'd really appreciate it!










    share|improve this question


























      2












      2








      2


      1






      I'm in the process of (slowly) learning how to make my websites more secure. I was checking out D&D Beyond, and noticed a few things I've never seen before, and I would like to learn more about.



      1. Portions of the source code don't show up when you View the Source.

      It's hard to explain. I tried to explain it in a different post, and I got a ton of snarky remarks. I'm telling you, I know what I saw. I would like to know how this is possible and how I can replicate it.



      I typically write in PHP/JQuery, so I'd primarily like to learn more using those languages.



      Example:
      You can create a Character using their Character Builder, then view your Character Sheet. The main portion of your character's stats are enclosed in a very large parent div: ".character_sheet"



      If you MANUALLY save your Character Sheet to your Desktop, you can see the HTML for this section. If you inspect this section in Firefox, you can also see the data. However, if you try to CTRL+U while in the browser, the HTML in this section does not appear. It also will not appear if you try to curl/fopen/file_get_contents



      Additionally, images are not visible by normal means.
      For Example: I am aware of how to disable right-clicking on a website, but if someone wanted to take my images, all they'd have to do is open my source code and look at the image url and save it from there.



      On the D&D Beyond site, I can bring up Firefox's web inspector where an Image SHOULD be, take a look at the CSS, and... nothing. No link to an image, where one should be. I don't know how they're getting images to appear without css/html. I'd be very interested to know how this is done.



      If anyone has any insight/guesses/etc and can point me in the right direction to learn some more, I'd really appreciate it!










      share|improve this question














      I'm in the process of (slowly) learning how to make my websites more secure. I was checking out D&D Beyond, and noticed a few things I've never seen before, and I would like to learn more about.



      1. Portions of the source code don't show up when you View the Source.

      It's hard to explain. I tried to explain it in a different post, and I got a ton of snarky remarks. I'm telling you, I know what I saw. I would like to know how this is possible and how I can replicate it.



      I typically write in PHP/JQuery, so I'd primarily like to learn more using those languages.



      Example:
      You can create a Character using their Character Builder, then view your Character Sheet. The main portion of your character's stats are enclosed in a very large parent div: ".character_sheet"



      If you MANUALLY save your Character Sheet to your Desktop, you can see the HTML for this section. If you inspect this section in Firefox, you can also see the data. However, if you try to CTRL+U while in the browser, the HTML in this section does not appear. It also will not appear if you try to curl/fopen/file_get_contents



      Additionally, images are not visible by normal means.
      For Example: I am aware of how to disable right-clicking on a website, but if someone wanted to take my images, all they'd have to do is open my source code and look at the image url and save it from there.



      On the D&D Beyond site, I can bring up Firefox's web inspector where an Image SHOULD be, take a look at the CSS, and... nothing. No link to an image, where one should be. I don't know how they're getting images to appear without css/html. I'd be very interested to know how this is done.



      If anyone has any insight/guesses/etc and can point me in the right direction to learn some more, I'd really appreciate it!







      php jquery






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 2:51









      Pixii BombPixii Bomb

      356 bronze badges




      356 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          1















          Server-side code such as PHP is always hidden to visitors (unless you have a security vulnerability of some sort).



          Client-side code such as HTML, JavaScript and CSS is always visible to the visitor. Even if you can't see it immediately in the DOM, it will be hiding there somewhere.



          The most likely scenario is that it is hidden within an embedded .js or .css file, which would look similar to the following:



          <script src="scripts.js"></script>
          <link rel="stylesheet" type="text/css" href="theme.css">


          HTML can be outputted to the page through JavaScript, which will not show in the DOM (though it would show up with a PHP echo). HTML can also be 'hidden' through use of <iframe> tags and HTML imports.



          JavaScript has a wide array of ways in which it can be obscured / malformed, so it can be hard to track down. You may some some strange, 'unreadable' code in the DOM / .js files, which in turn could be outputting the HTML itself.






          share|improve this answer
































            0















            Please consider the below points,



            1. All client side resources are viewable although you can make it easyless readable by javascript and it's better to do most of your codes by server side.


            2. You need to know about what search engines love if your app is a public web site & will be indexed by those search engines, as some search engines don't scrap to the web pages which have only JavaScript code.


            3. You can create images without <img> tags using CSS background-image Property.


            4. there are some useful lib's to make your code more hard readable like Closure Compiler Service & JSFuck & JS Packers although it's better to make it by yourself and just add like those techniques to your knowledge, noting that this will make your code size larger.


            5. and at all there are no white page source, it should contains at least <script> and if you saw a real white page it may be disabled from sever side to be viewable at top of window and it may be works if embedded in iframe or by sending specific headers to it or whatever else.


            6. You can make your server & client sides cooperate :) to get great result and more secured.






            share|improve this answer



























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55389480%2ftrying-to-figure-out-how-to-hide-images-and-source-code%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1















              Server-side code such as PHP is always hidden to visitors (unless you have a security vulnerability of some sort).



              Client-side code such as HTML, JavaScript and CSS is always visible to the visitor. Even if you can't see it immediately in the DOM, it will be hiding there somewhere.



              The most likely scenario is that it is hidden within an embedded .js or .css file, which would look similar to the following:



              <script src="scripts.js"></script>
              <link rel="stylesheet" type="text/css" href="theme.css">


              HTML can be outputted to the page through JavaScript, which will not show in the DOM (though it would show up with a PHP echo). HTML can also be 'hidden' through use of <iframe> tags and HTML imports.



              JavaScript has a wide array of ways in which it can be obscured / malformed, so it can be hard to track down. You may some some strange, 'unreadable' code in the DOM / .js files, which in turn could be outputting the HTML itself.






              share|improve this answer





























                1















                Server-side code such as PHP is always hidden to visitors (unless you have a security vulnerability of some sort).



                Client-side code such as HTML, JavaScript and CSS is always visible to the visitor. Even if you can't see it immediately in the DOM, it will be hiding there somewhere.



                The most likely scenario is that it is hidden within an embedded .js or .css file, which would look similar to the following:



                <script src="scripts.js"></script>
                <link rel="stylesheet" type="text/css" href="theme.css">


                HTML can be outputted to the page through JavaScript, which will not show in the DOM (though it would show up with a PHP echo). HTML can also be 'hidden' through use of <iframe> tags and HTML imports.



                JavaScript has a wide array of ways in which it can be obscured / malformed, so it can be hard to track down. You may some some strange, 'unreadable' code in the DOM / .js files, which in turn could be outputting the HTML itself.






                share|improve this answer



























                  1














                  1










                  1









                  Server-side code such as PHP is always hidden to visitors (unless you have a security vulnerability of some sort).



                  Client-side code such as HTML, JavaScript and CSS is always visible to the visitor. Even if you can't see it immediately in the DOM, it will be hiding there somewhere.



                  The most likely scenario is that it is hidden within an embedded .js or .css file, which would look similar to the following:



                  <script src="scripts.js"></script>
                  <link rel="stylesheet" type="text/css" href="theme.css">


                  HTML can be outputted to the page through JavaScript, which will not show in the DOM (though it would show up with a PHP echo). HTML can also be 'hidden' through use of <iframe> tags and HTML imports.



                  JavaScript has a wide array of ways in which it can be obscured / malformed, so it can be hard to track down. You may some some strange, 'unreadable' code in the DOM / .js files, which in turn could be outputting the HTML itself.






                  share|improve this answer













                  Server-side code such as PHP is always hidden to visitors (unless you have a security vulnerability of some sort).



                  Client-side code such as HTML, JavaScript and CSS is always visible to the visitor. Even if you can't see it immediately in the DOM, it will be hiding there somewhere.



                  The most likely scenario is that it is hidden within an embedded .js or .css file, which would look similar to the following:



                  <script src="scripts.js"></script>
                  <link rel="stylesheet" type="text/css" href="theme.css">


                  HTML can be outputted to the page through JavaScript, which will not show in the DOM (though it would show up with a PHP echo). HTML can also be 'hidden' through use of <iframe> tags and HTML imports.



                  JavaScript has a wide array of ways in which it can be obscured / malformed, so it can be hard to track down. You may some some strange, 'unreadable' code in the DOM / .js files, which in turn could be outputting the HTML itself.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 28 at 3:07









                  Obsidian AgeObsidian Age

                  31.2k7 gold badges27 silver badges48 bronze badges




                  31.2k7 gold badges27 silver badges48 bronze badges


























                      0















                      Please consider the below points,



                      1. All client side resources are viewable although you can make it easyless readable by javascript and it's better to do most of your codes by server side.


                      2. You need to know about what search engines love if your app is a public web site & will be indexed by those search engines, as some search engines don't scrap to the web pages which have only JavaScript code.


                      3. You can create images without <img> tags using CSS background-image Property.


                      4. there are some useful lib's to make your code more hard readable like Closure Compiler Service & JSFuck & JS Packers although it's better to make it by yourself and just add like those techniques to your knowledge, noting that this will make your code size larger.


                      5. and at all there are no white page source, it should contains at least <script> and if you saw a real white page it may be disabled from sever side to be viewable at top of window and it may be works if embedded in iframe or by sending specific headers to it or whatever else.


                      6. You can make your server & client sides cooperate :) to get great result and more secured.






                      share|improve this answer





























                        0















                        Please consider the below points,



                        1. All client side resources are viewable although you can make it easyless readable by javascript and it's better to do most of your codes by server side.


                        2. You need to know about what search engines love if your app is a public web site & will be indexed by those search engines, as some search engines don't scrap to the web pages which have only JavaScript code.


                        3. You can create images without <img> tags using CSS background-image Property.


                        4. there are some useful lib's to make your code more hard readable like Closure Compiler Service & JSFuck & JS Packers although it's better to make it by yourself and just add like those techniques to your knowledge, noting that this will make your code size larger.


                        5. and at all there are no white page source, it should contains at least <script> and if you saw a real white page it may be disabled from sever side to be viewable at top of window and it may be works if embedded in iframe or by sending specific headers to it or whatever else.


                        6. You can make your server & client sides cooperate :) to get great result and more secured.






                        share|improve this answer



























                          0














                          0










                          0









                          Please consider the below points,



                          1. All client side resources are viewable although you can make it easyless readable by javascript and it's better to do most of your codes by server side.


                          2. You need to know about what search engines love if your app is a public web site & will be indexed by those search engines, as some search engines don't scrap to the web pages which have only JavaScript code.


                          3. You can create images without <img> tags using CSS background-image Property.


                          4. there are some useful lib's to make your code more hard readable like Closure Compiler Service & JSFuck & JS Packers although it's better to make it by yourself and just add like those techniques to your knowledge, noting that this will make your code size larger.


                          5. and at all there are no white page source, it should contains at least <script> and if you saw a real white page it may be disabled from sever side to be viewable at top of window and it may be works if embedded in iframe or by sending specific headers to it or whatever else.


                          6. You can make your server & client sides cooperate :) to get great result and more secured.






                          share|improve this answer













                          Please consider the below points,



                          1. All client side resources are viewable although you can make it easyless readable by javascript and it's better to do most of your codes by server side.


                          2. You need to know about what search engines love if your app is a public web site & will be indexed by those search engines, as some search engines don't scrap to the web pages which have only JavaScript code.


                          3. You can create images without <img> tags using CSS background-image Property.


                          4. there are some useful lib's to make your code more hard readable like Closure Compiler Service & JSFuck & JS Packers although it's better to make it by yourself and just add like those techniques to your knowledge, noting that this will make your code size larger.


                          5. and at all there are no white page source, it should contains at least <script> and if you saw a real white page it may be disabled from sever side to be viewable at top of window and it may be works if embedded in iframe or by sending specific headers to it or whatever else.


                          6. You can make your server & client sides cooperate :) to get great result and more secured.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 28 at 4:35









                          Mamdouh FreelanceMamdouh Freelance

                          1,9781 gold badge3 silver badges10 bronze badges




                          1,9781 gold badge3 silver badges10 bronze badges






























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55389480%2ftrying-to-figure-out-how-to-hide-images-and-source-code%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해