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',

Recommended Answers

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.

Jump to Post

All 2 Replies

Member Avatar

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.