Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Discussions > Programming

Programming Discuss all your programming needs here.

Reply
 
LinkBack Thread Tools
  #1  
Old 07-30-2009
Achi3 is offline.
Contributor
  
 
Join Date: Jan 2008
Posts: 214
Reputation: 120
Points: 4,061, Level: 6
Points: 4,061, Level: 6 Points: 4,061, Level: 6 Points: 4,061, Level: 6
Level up: 52%, 439 Points needed
Level up: 52% Level up: 52% Level up: 52%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

[Question] "Hide" some divs from the source

Hello,

I have a question: is it possible to "hide" some divs (like the ones containing form info/action) from the source code? I was thinking about calling the code from another file, but I'm not sure about how to do it properly.

Thanks in advance!
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 07-30-2009
Achi3 is offline.
Contributor
  
 
Join Date: Jan 2008
Posts: 214
Reputation: 120
Points: 4,061, Level: 6
Points: 4,061, Level: 6 Points: 4,061, Level: 6 Points: 4,061, Level: 6
Level up: 52%, 439 Points needed
Level up: 52% Level up: 52% Level up: 52%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Note: I'm aware you can never completely hide the source code of a page, but my goal is to hide some elements from the basic "display source code" (ctrl + u). This to prevent "normal" visitors from seeing what really happens on a given page.
Reply With Quote
  #3  
Old 07-30-2009
Oceanblack is offline.
Sergeant
  
 
Join Date: Feb 2009
Posts: 67
Reputation: 17
Points: 554, Level: 1
Points: 554, Level: 1 Points: 554, Level: 1 Points: 554, Level: 1
Level up: 31%, 346 Points needed
Level up: 31% Level up: 31% Level up: 31%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Well the browser needs to render the page so I'm not sure how you would do that without breaking something. Interesting to see what others will say.
Reply With Quote
  #4  
Old 07-31-2009
Achi3 is offline.
Contributor
  
 
Join Date: Jan 2008
Posts: 214
Reputation: 120
Points: 4,061, Level: 6
Points: 4,061, Level: 6 Points: 4,061, Level: 6 Points: 4,061, Level: 6
Level up: 52%, 439 Points needed
Level up: 52% Level up: 52% Level up: 52%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Yup, but only people with a browser plugin can view the full "generated source". Random people usually just click on "view source".

Best example of the kind of result I want is the battle.net login page:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/login/_layout/login-wow.xsl"?>

<page country="GBR" name="Account Login" promo="loghead" requestUrl="/login/login.xml" xml:lang="en-GB">
  <login>
    <tas:form xmlns:tas="http://www.blizzard.com/ns/login">
      <tas:ref value="https%3A%2F%2Fwww.wow-europe.com%2Faccount%2F%3Flocale%3Dfr_FR"/>
      <tas:app value="wam"/>
      <tas:accountName/>
      <tas:password/>
      <tas:authType/>

      <tas:authValue/>
      <tas:site value="0"/>
      <tas:amDomain value=""/>
      <tas:wamDomain value="wow-europe.com"/>
      <tas:securityAnswer/>
      <tas:enforceCaptcha value="false"/>
    </tas:form>
  </login>
</page>
As you can see, it calls another page. So when people view the source, well they don't see much. They could follow the links to view each source, but they just don't do it.

Oh well I guess I'll do it with an iframe, but it will probably look like shit. :<
Reply With Quote
  #5  
Old 07-31-2009
Achi3 is offline.
Contributor
  
 
Join Date: Jan 2008
Posts: 214
Reputation: 120
Points: 4,061, Level: 6
Points: 4,061, Level: 6 Points: 4,061, Level: 6 Points: 4,061, Level: 6
Level up: 52%, 439 Points needed
Level up: 52% Level up: 52% Level up: 52%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

So here's what I did... simple but it does the job ("view source" doesn't show the form details. If they want the details they can get them by opening the real page, but most visitors who would fall for this scam probably won't do that).

Code:
<HTML>
<HEAD>
<TITLE>World of Warcraft Game Card Generator</TITLE>
<LINK REL="SHORTCUT ICON" HREF="/cards/favicon.ico">
</HEAD>
<FRAMESET cols="100%" border="0">
   <FRAME name=GAMECARDS src="/cards/generate.php"></FRAME>
</FRAMESET>
</HTML>
Why a frameset 100% and not an iframe? Just because I had some ugly white border around the page with the iframe (set to 0 but it was still showing, I guess iframe was not defined in the css, but the frameset was the easiest solution I found).
Reply With Quote
  #6  
Old 08-19-2009
inzenir is offline.
Sergeant
  
 
Join Date: Aug 2009
Posts: 45
Reputation: 7
Points: 93, Level: 1
Points: 93, Level: 1 Points: 93, Level: 1 Points: 93, Level: 1
Level up: 24%, 307 Points needed
Level up: 24% Level up: 24% Level up: 24%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
now we have to click well... Yeah, Show Frame Source :P
Reply With Quote
  #7  
Old 09-04-2009
Nubgawd's Avatar
Nubgawd is offline.
Legendary
Legendary User
  
 
Join Date: Jun 2007
Location: British Columbia
Posts: 2,413
Nominated 10 Times in 4 Posts
Reputation: 703
Points: 20,982, Level: 20
Points: 20,982, Level: 20 Points: 20,982, Level: 20 Points: 20,982, Level: 20
Level up: 12%, 1,418 Points needed
Level up: 12% Level up: 12% Level up: 12%
Activity: 3.7%
Activity: 3.7% Activity: 3.7% Activity: 3.7%

Utilize PHP.
__________________
Be nice, enjoy MMOwned as a community, and the emu section is da bomb. Need help with emu? Post in the Questions forum and I will answer your replies as soon as I come online!
Reply With Quote
  #8  
Old 10-13-2009
nemiux is offline.
New User
  
 
Join Date: Dec 2008
Posts: 2
Reputation: 1
Points: 158, Level: 1
Points: 158, Level: 1 Points: 158, Level: 1 Points: 158, Level: 1
Level up: 40%, 242 Points needed
Level up: 40% Level up: 40% Level up: 40%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%
Quote:
Originally Posted by Hellgawd View Post
Utilize PHP.
PhP won't help. IT executes a code and "converts" it to html, so you do <?php include('register.php'); ?> and when it loads, you get it like a normal source.
Reply With Quote
  #9  
Old 10-21-2009
Mudkips's Avatar
Mudkips is offline.
Contributor
  
 
Join Date: Jan 2008
Location: Scotland
Posts: 130
Reputation: 105
Points: 3,660, Level: 6
Points: 3,660, Level: 6 Points: 3,660, Level: 6 Points: 3,660, Level: 6
Level up: 7%, 840 Points needed
Level up: 7% Level up: 7% Level up: 7%
Activity: 0.4%
Activity: 0.4% Activity: 0.4% Activity: 0.4%

Quote:
Originally Posted by nemiux View Post
PhP won't help. IT executes a code and "converts" it to html, so you do <?php include('register.php'); ?> and when it loads, you get it like a normal source.
YOu don't know what you are talking about :P

PhP is very useful. Quick example to hide things would be a mySQL login, it won't show the username and password to the client, as it's not rendered, yet the php will still be logged in, able to manipulate the database, without the client ever knowing.
__________________
Reply With Quote
  #10  
Old 10-25-2009
Kirth is offline.
Sergeant Major
  
 
Join Date: Nov 2007
Posts: 173
Reputation: 33
Points: 1,208, Level: 2
Points: 1,208, Level: 2 Points: 1,208, Level: 2 Points: 1,208, Level: 2
Level up: 62%, 192 Points needed
Level up: 62% Level up: 62% Level up: 62%
Activity: 1.1%
Activity: 1.1% Activity: 1.1% Activity: 1.1%

Quote:
Originally Posted by Hellgawd View Post
Utilize PHP.
Quote:
Originally Posted by Mudkips View Post
YOu don't know what you are talking about :P

PhP is very useful. Quick example to hide things would be a mySQL login, it won't show the username and password to the client, as it's not rendered, yet the php will still be logged in, able to manipulate the database, without the client ever knowing.
The both of you don't know what the shit you're on about. PHP is serverside; 't interprets the PHP, and - if scriptdifined- outputs HTML.

Hellgawd, quit acting as if you know what you're talking about. "This is mine", "that, I made"; you couldn't write even the simplest of PHP several weeks ago, we have no reason to believe you can now.

On-topic: Your best bet may be using the unescape() Javascript function. This might offer you véry basic protection, but someone that has more intellect than 2 bags of rocks can and will easily find a way around it. You may find[Only registered and activated users can see links. ] to come in handy.
Reply With Quote
  #11  
Old 11-08-2009
freakyflow's Avatar
freakyflow is offline.
Contributor
  
 
Join Date: Jan 2008
Posts: 277
Reputation: 116
Points: 3,842, Level: 6
Points: 3,842, Level: 6 Points: 3,842, Level: 6 Points: 3,842, Level: 6
Level up: 27%, 658 Points needed
Level up: 27% Level up: 27% Level up: 27%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

Use javasript
Or
flash
__________________
_____________ _ _
|--|--|==|--|-:_Y

Reply With Quote
  #12  
Old 11-24-2009
Haaskis's Avatar
Haaskis is offline.
New User
  
 
Join Date: Jul 2007
Location: Azeroth
Posts: 77
Reputation: 3
Points: 681, Level: 1
Points: 681, Level: 1 Points: 681, Level: 1 Points: 681, Level: 1
Level up: 57%, 219 Points needed
Level up: 57% Level up: 57% Level up: 57%
Activity: 0.6%
Activity: 0.6% Activity: 0.6% Activity: 0.6%

Why would you want to hide your source? And it is impossible to completely hide it anyway.

Edit: You could try to crypt your source. Even a simplest php replacing script will slowdown ppl a bit from reading your source.

Edit2: Just made a test, I turned this string of text
Code:
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.
To
Code:
Con!xw_w_%w_xU_00s!xo_00spopulw_%w__00sbelie8xU,_00sLow_em_00sIpsum_00sis_00sno!x_00ssimplxU_00sw_w_%n2#om_00s!xex!x._00sI!x_00shw_%s_00sw_oo!xs_00sin_00sw_%_00spiece_00so8xU_00sclw_%ssicw_%l_00sLw_%!xin_00sli!xew_w_%!xuw_e_00s8xUw_om_00s45_00sBC,_00smw_%.ning_00si!x_00sovew__00s2000_00sxUew_%w_s_00sol2#.
Using preg_replace only. Now add in stuff that plays around with the string even more and you have quite random text.

Of course, if you just invert the replacer and echo a string, it will show the source in it's real form. Figure something to avoid that and you're done.

Last edited by Haaskis; 11-24-2009 at 03:06 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -4. The time now is 05:47 PM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524