Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8534275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:09:23+00:00 2026-06-11T10:09:23+00:00

I have a jQuery console that I’m writing and I’d like to keep a

  • 0

I have a jQuery console that I’m writing and I’d like to keep a log of what people type in there at what time with their IP address, for security reasons. I don’t want to make the log public, but the console itself is supposed to be a fun sort of thing and isn’t in a protected folder.

I want to put the log into my protected admin folder, but can I send Ajax data to a PHP file inside the protected folder or it will still prompt for the username/password?

I’ve already tried outright making the log itself in the folder from an external PHP file, but it doesn’t work, hence why I’m wondering if it will work if the PHP file is inside the protected folder.

On a similar note, do I even need to bother with keeping a log? Like I said, it’s for security purposes, but I don’t know if it’s necessary. As far as I know, with the way I’ve coded the console, it doesn’t accept any input outside of the commands I’ve written. I’m still worried about things like SQL injection and the like.

Sorry for the long-winded question, and thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:09:24+00:00Added an answer on June 11, 2026 at 10:09 am

    Why not create a database to store this sort of data? That way the data is not accessible to the users, and it is also stored nicely for anything you want to do with it. With this approach you could have you PHP page in a publicly accessible place too.

    I would suggest PHP Data Objects for security if you choose to take this approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jQuery with an Ajax call that looks like this: $.ajax({ type:
I have a jQuery mouseover event like so: $('#outer').mouseover(function() { console.log( e.target.width() ); });
I have a jquery block that does some ajax stuff like this: $.ajax({ url:
I have a jquery script in my file that says this: <script type=text/javascript> $(document).ready(function(e){
I have seen jquery-ui-1.8.11.js verify console.log functionality by doing if (this.debug) console.log() I have
I have this HTML: <input type=text id=query data-source=whatever> I have some jQuery that changes
I have this jquery that is working on the firebug console: $('#transaction_list>tbody>tr>td:nth-child(2)').each( function(){$(this).toArray();}) And
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have jQuery to select all font elements that are children of the element
I have jquery with class= modal i want to call that class when page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.