Hello, i have a very basic question.

Is there a way to hide the file name/folder (ajax/post.php) used on the AJAX post request?

$.ajax({
  type: 'POST',
  url: 'ajax/post.php',
  data: data,
  success: success,
  dataType: dataType
});

I dont want people to see this: 'ajax/post.php',

Member Avatar for stbuchok

you could use a cookie and set the cookie with the path, however you still have to set the cookie which would be visible in your code (same thing with localstorage).

Short answer, no.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.