logo
down
shadow

How can I hide a $_GET variable to be more secured in PHP?


How can I hide a $_GET variable to be more secured in PHP?

By : Krrish596
Date : January 10 2021, 01:57 PM
it should still fix some issue there's nothing wrong with passing query parameters like that in _GET. _POST is no more secure.
If a user is able to edit ad 30, but not ad 31, your code needs to enforce those rules.
code :


Share : facebook icon twitter icon
In php saving all $_GET variables in a session variable and make them accessible trough $_GET again

In php saving all $_GET variables in a session variable and make them accessible trough $_GET again


By : lbfromla
Date : March 29 2020, 07:55 AM
this one helps. I would like to save all $_GET variables in a session variable and make them accessible trough $_GET again later on. , Don't do this. But to save:
code :
<?php

session_start();
$_SESSION["GET"] = $_GET;

?>
<?php

session_start();
$_GET = $_SESSION["GET"];

?>
Rails + Backbone.js - Hide secured data in page source

Rails + Backbone.js - Hide secured data in page source


By : Khalil Haraksin
Date : March 29 2020, 07:55 AM
Does that help There is no way to hide it in the page source from the person visiting your website. This is because of the way the internet works, all the website contents are downloaded to the visitors browser and it would be very nasty if developers could hide things from the visitor.
So, you really don't have any way of hiding those from a page visitor that knows his stuff, if the they are in plain text in the sources. And even if they were somehow hidden, when that request is launched, the user could just check the network tab of his developer tools and get the info from there.
How to use variable inside parameter $_GET? example: ($_GET[$my_var])

How to use variable inside parameter $_GET? example: ($_GET[$my_var])


By : Sangeeta Prasad
Date : March 29 2020, 07:55 AM
around this issue I found the problem, i had already tested all of these options, but ever dont working, the problem was that I was testing the function inside the main page of my site, and on the main page (mysite.com) does not get the parameter (?page=nossuport), so always returning null values​​, when I used the variable in the GET or used the echo $GET[$my_var] to test.. It was a great carelessness of mine, would never work...
by the way, the two parameters works correctly:
code :
$_GET[$url_before]
$_GET["$url_before"]
Appending $_GET variable to URL already containing $_GET variables

Appending $_GET variable to URL already containing $_GET variables


By : Sergio Andrés Osma A
Date : March 29 2020, 07:55 AM
I hope this helps . I have a sub-navigation menu on my page that opens up whenever ?n=review is appended to the URL.
code :
if(empty($_GET['language'])) {
  $fragment = '?n=review';
} else {
  // if language is set, get the value
  $lang = $_GET['language'];
  $fragment = "?language=$lang&n=review";
}

// I just made up the /index.php part, replace that with the proper link.
$url = "/index.php$fragment";
PHP $_GET hide url

PHP $_GET hide url


By : ksenso
Date : March 29 2020, 07:55 AM
this will help If you want to hide search parameter, then send it by POST method and accept it by $_POST instead of $_GET.
code :
if(isset($_POST['search'])){
    $domena = ($_POST['search']);
} 
Related Posts Related Posts :
  • How can i get the source of a 777 - CHMOD php file?
  • Convert 2010-04-16 16:30:00 to "Tomorrow Afternoon"
  • Login to Gmail Inbox using Curl?
  • Upload Excel or CSV file to MySQL with PHP
  • Outlook Marking Email as Junk Email
  • Upload an image using class.upload.php via AJAX, display image in form using jQuery
  • mysql_connect() causes page to not display (WAMP)
  • How to limit a users uploaded image size using PHP
  • What's the difference whether or not to run PHP in safe mode?
  • Logging in to a website cURL
  • Using php to create a password system with chinese characters
  • PHP is not called properly in IE using set interval function in Javascript
  • How to read pdf, ppt, xl, doc files content into a string in php/python
  • php script for currency conversion
  • In PHP... best way to turn string representation of a folder structure into nested array
  • PayPal for Indian Rupees (INR) any solution
  • PHP Deployment to Live Server
  • Ideal Multi-Developer Lamp Stack?
  • How can I save an image from a file input field using PHP & MySQL?
  • Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in
  • Connecting to external MySQL DB from a web server not running MySQL
  • Is it possible to add custom fields to a Drupal taxonomy term?
  • PHP 6.0 - Roadmap?
  • jQuery wait for ajax call to be over before continuing
  • checkUnique function?
  • How to define an n-m relation in doctrine?
  • Sort the unsorted text file and rewrite to same text file in sorted order
  • Version control a content management system?
  • How can i run Single PHP File using apache-tomcat-6.0.18?
  • Array of objects is empty when I come to retrieve one from the array
  • PHP Library: Calculate a bounding box for a given lat/lng location
  • Good Wordpress Theme/plugin for showing off code examples and scripts
  • Replace all spaces and special symbols with dash in URL using PHP language
  • globally get any field value in user table of logged in user
  • Can you get a job if you know XHTML, CSS and Basic PHP?
  • HTML Upload Form will only upload files found in the directory of the PHP file
  • Determine if a PHP array uses keys or indices
  • Are frameworks really necessary for beginners/intermediates?
  • PHP File Downloading Questions
  • Who owns a php exec tar extracted file?
  • Best way to get timezone of user based on area code
  • Mysql BETWEEN clause being ignored. No syntax error
  • Zend Framework: Getting request object in bootstrap
  • PHP + GD: imagetruecolortopalette not keeping transparency
  • Good Guide For Web App Security?
  • Creating a new wordpress post from twitter tweets
  • Query to show images with recent posts in Wordpress sidebar/widget
  • select & print multiple value from dropdown list
  • Storing a digital signature for bookings on a web based system
  • How to generate all permutations of a string in PHP?
  • How do I get the PostgreSQL PHP extension working on Windows?
  • Parsing WordPress XML, slash:comments syntax?
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk