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 6354891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:39:21+00:00 2026-05-24T22:39:21+00:00

I have such a big problem, and i’ve been thinking about it for 2

  • 0

I have such a big problem, and i’ve been thinking about it for 2 days. I wrote a small class about catching unregistered (guest) users who can try SQL injection attack throught the URL and after 2 experiments their IP is blocked in my DB (so in array i store some signs),

$blockSigns = array ("'", "/", "\", ":", "//", "and so on");

but:

  1. IP is not good solution (PHP cannot see LAN IP_s if server is under proxy), and even it can I cannot block it. I cannot block 192.168.1.10 🙂
  2. I don’t need WAN IP because, i cannot block site for a company because of one n00b.
  3. PHP cannot catch Mac address (mac isnot included in header)
  4. I want to block users that are guests also, so i don’t know their usernames or mail or something

if (isset($_SESSION[“user”])) {
$user = $_SESSION[“user”]; } else {
$user = “unknown”; }

  1. I read that perl has some API called NET::MAC,

    http://metacpan.org/pod/Net::MAC

I decided to find user mac address by perl and integrate it in PHP. Is it possible?
if is, please how? I cannot understand.
if not:

how can I fix that problem? how can i identify user, if he/she isnot registered? is there any chance? please share your experience if you already had that kind of problem. 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-05-24T22:39:23+00:00Added an answer on May 24, 2026 at 10:39 pm

    It is impossible to get the MAC address of a user. The only mac address your server sees is that of the router it is connected to. And if you blocked this, you’d block all traffic coming to your server.

    So as @Jon said, if your application is secure you shouldn’t have to care about people trying to inject things.

    Your way to detect SQL injection is horribly by the way. Especially ' and : but also the other characters are perfectly valid in most contexts. For example, a user’s real name might include '. However, you do not need to add such detection code at all – if you escape all untrusted input properly or you use prepared statements for your queries (better) your application is not vulnerable to SQL injection at all.

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

Sidebar

Related Questions

I have big problem with my small database(DERBY) application. I am getting such an
I have a string such as big bad dog, how can I get an
I have such html and css. <div class=selected> <div class=text>First</div> <div class=arrow>&nbsp;</div> </div> .selected
I have such a basic problem in Delphi,I can't solve it. My Code: Note:DataR
I have such a class: public class Cycle { public List<int> Edges { get;
I have such class public unsafe class EigenSolver { public double* aPtr {get; private
I am a new to db4o. I have a big problem with persistance of
I have a problem with assigning one big decimal value to another I am
In my small problem, I have n users and m equipments (m and n
Big picture: I have been asked to create a search engine for our company's

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.