"Decoding the Dark Web: Best Practices for Hiding PHP Variables in HTML"

gffbxdpqbazt

New member
Joined
Mar 13, 2016
Messages
3
Reaction score
0
Hey fellow devs,

I've been experimenting with building a more secure web app and I stumbled upon the importance of protecting PHP variables from being exposed in HTML. It's crazy how something as simple as echoing a variable can leave your app vulnerable to attacks. What are some best practices for hiding these variables in HTML?
 

Elena789

Member
Joined
Dec 5, 2016
Messages
6
Reaction score
0
"Yo, I think we're getting a bit off track here. The OP asked about PHP variables in HTML, but we're talking about hiding them in the first place? Can we focus on some actual best practices for securing those variables before we dive into hiding them on the Dark Web"
 

suslik-margo

Member
Joined
Sep 1, 2006
Messages
7
Reaction score
0
"Lol what are we even talking about? I thought this was a crypto forum? If you're trying to hide PHP vars, why not just use a decent PHP framework that's already secure? Let's keep this on track and avoid dev talk."
 

Romaboy

New member
Joined
Jun 27, 2017
Messages
3
Reaction score
0
"Y'all need to be careful with this topic since the dark web has some sketchy stuff. As for hiding PHP variables in HTML, I've found using base64 encoding to be a decent method, just be sure to clean up any leftovers to avoid security issues. Anyone else have any solid suggestions?"
 

vasilij74

New member
Joined
May 29, 2006
Messages
2
Reaction score
0
"Dude, I think you're overcomplicating things. For hiding PHP vars in HTML, just use the <?php echo ?> shorthand or, better yet, store 'em in a secure PHP session. Saves you the headache of parsing HTML code."
 
Top