/g/ - Technology

Board dedicated to discussions related to everyday Technology!

New Boards Added

>>>/int/ >>>/out/ >>>/wp/ >>>/ck/ >>>/k/ >>>/fa/

Bharatchan September 2025 UpdateHello everyone, it's been a while. Here we are wit...
[View Noticeboard]
0/4000

BharatChan Disclaimer

Notice

Before proceeding, please read and understand the following:

1. BharatChan is a user-generated content platform. The site owners do not claim responsibility for posts made by users.

2. By accessing this website, you acknowledge that content may not be suitable for all audiences.

3. You must follow BharatChan’s community guidelines and rules. Failure to do so may result in a ban.

4. By using BharatChan users agree to the use of cookies, mostly for session related to user.

A poster on BharatChan must abide by the following rules:

Sitewide Rules
You must be 18 or older to post.
Sharing personal details or engaging in doxing is strictly prohibited.
Political discussions should be confined to /pol/.
Off-topic discussions, thread derailment, or spam may result in a ban and IP blacklist.
Pornographic content is strictly prohibited.
Any activity violating local laws is not allowed.
If you are not an Indian, you can only post in /int/. Or create and account and ask for approval to post in other boards.
Acknowledge

Recent Posts

Gemini+Figma for UI

View

/emacs/ general

View

Simple Linux General /slg/ - Useful Commands editi...

View

Jio Fiber

View

LEARNING SPREADSHEETS

View

View

View

View

My Biggest Project (till date)

View

View

AI image gen

View

Zerodha just donated 100,000 usd to FFMPEG

View

ITS HAPPENING

View

CAN SOMEONE EXPLAIN ME HOW THESE JOB DESCRIPTIONS ...

View

the best android browser has arrived!!

View

/compiler_develoment/ thread

View

Pajeet doval

View

/g/ - Laptops

View

Esp32 Jammer

View

Help me move away from winblows

View

दोमेन

View

View

the hmd touch 4g

View

View

I am done. It's over.

View

Jokes write themselves

View

AWS outage

View

View

View

took them long enough

View

just installed Arch Linux bros

View

Where to apply

View

View

Is the battery of my laptop dead?

View

OpenCL

View

Where are we heading towards?

View

does this ever end?

View

Zoho appreciation thread

View

View

new discord server for pair-programming

View

Looking to Buy a Decent Gaming Laptop

View

View

View

View

which llm subscription is the best

View

RSS feed for Bharatchan ?

View

Sketch - A simple 2D graphics library in C

View

View

View

View

Anonymous

IN

Ea+JT0

No.1380

Anyone interested in Database as a Service.

Like you don't need to create a server and db. Just use my website and with one click create a table. You will get a link where you can GET/POST/DELETE the data in table. You will just have to create a frontend and call the API from there. Thats it , no backend chikcik.

But I'm stuck at one thing. How would I prevent spam. As the links can be seen through network tab , anyone can make request to them.

Chatgpt was not helpful. Anyone can brainstorm on this , would be great.

Anonymous

IN

Ea+JT0

No.1381

>>1380(OP)

Yes it will be free.

Anonymous

IN

ifttQj

No.1382

>>1380(OP)

Kinda like firebase?

>how would i prevent spam

Duh have separate user management? Subscription system. Based on that they get access to your db resource where they can allocate or de-allocate.

Some small startups or businesses may like your idea in fact most small businesses will prefer your service if it's easy to store data etc. Enough for you to work out your project.

Anonymous

AP

Ea+JT0

No.1385

>>1382

No. You didn't understand.

User will create a table and get a URL https://abc.com/table. He will POST {name :gay}.

I don't want him to use a server. Directly call the service from frontend.

BUT

then anyone can check the link and make the request , spamming the table.

...

Auth is not possible because the auth keys will still be visible in request body.

Checking origin will be a problem too as spammer can spoof it with curl.

...

Need a noval solution.

Anonymous

IN

ifttQj

No.1387

>>1385

hmmm, it's good idea that when you generate a table you should have some sort of token for authentication.

that token ca be part of the url as a parameter or a query depending on your choice.

Anonymous

AP

Ea+JT0

No.1389

>>1387

but anyone can see that token. Making user create a server to store token safely defeat the prpose

Anonymous

IN

ifttQj

No.1391

>>1389

well why would one want to expose the db details to the public?

He can create a wrapper or api or whatever for his own case. He is supposed to handle those details at the backend not in the front end in the first place.

Obviously your target user is not the final user, he is the one who is providing service to another party through his own API wrappers.

Anonymous

IN

V5/BGm

No.1405

bump

Anonymous

IN

V5/BGm

No.1406

>>1405

deepthi k gave me a good answe

Direct Chat

deepseek-v3-0324

deepseek-v3-0324

I understand your challenge now. You want to provide a simple, serverless database-as-a-service where users can create tables and interact with them directly from their frontend, but you need to prevent abuse/spam without requiring traditional authentication (since keys would be exposed in the frontend).

Here are some novel approaches to mitigate spam:

1. Rate Limiting by IP + Browser Fingerprinting

Combine IP-based rate limiting with browser fingerprinting (using libraries like fingerprintjs).

Even if someone sees the URL, they won't easily spoof the same fingerprint from another machine.

Downside: Advanced attackers can bypass this.

2. One-Time Tokens (OTT) for Write Operations

When a user creates a table, generate a one-time token (OTT) for write operations (POST/DELETE).

The token is valid only for a short time or a single request.

The frontend must request a new token for each write (via a hidden iframe or background fetch).

Spammers can't reuse tokens, and tokens expire quickly.

3. Proof-of-Work (PoW) for Requests

Require clients to solve a small computational challenge (e.g., hash collision) before processing a request.

This slows down spammers but is negligible for legitimate users.

Example: Include a nonce in the request that must meet a certain difficulty target.

4. Invisible CAPTCHA / Behavioral Analysis

Use lightweight, invisible CAPTCHAs (e.g., Cloudflare Turnstile) or analyze user behavior (mouse movements, click patterns) to distinguish humans from bots.

Only allow requests that pass the check.

5. Domain Locking (Optional)

Let users optionally "lock" their table to a specific domain (e.g., example.com).

Verify the Origin or Referer header. While these can be spoofed, it raises the bar for casual abuse.

Combine with other methods for better security.

6. Temporary Write Permissions

Allow writes only for a short time after the table is created (e.g., 1 hour).

After that, the user must "renew" write access manually (e.g., by clicking a button on your site).

7. Frontend-Only HMAC Signing

Generate a short-lived HMAC key for the user's session (stored in localStorage).

Require all requests to be signed with this key.

The key rotates frequently, and spammers can't easily extract it (though determined attackers can).

8. User Approval for Public Tables

If a table is accessed from an unexpected IP/device, require the owner to approve the request via email or a dashboard.

Hybrid Approach (Recommended):

Combine several of these methods, such as:

Rate limiting + browser fingerprinting for basic protection.

Optional domain locking for users who want stricter control.

Proof-of-work for high-traffic tables.

This way, you balance usability and spam resistance without forcing users to manage auth keys.

Would any of these work for your use case?

Anonymous

IN

V5/BGm

No.1407

Won't be continuing with this as there isn't any scope and scale in it.

Anonymous

IN

9UQNNl

No.1408

>>1380(OP)

already exists lol

bazillion companies do this, see cloudflare d1 and yes there's many alternatives

ARYA

+JvOvC

No.1409

>>1385

>I don't want him to use a server. Directly call the service from frontend.

you don't want to put anything in the database directly

never trust the users

you have to check if the data is correct and do a sanity check before performing a database operation

Anonymous

IN

V5/BGm

No.1410

>>1408

Nope. Try to understand. Others are giving access to DB using API. You NEED a backend to access DB from those api.

...

What I'm suggesting is , I GIVE THEM DIRECT API , not backed , a direct link where they send what to put in table or what to get from table. No need of backend.

>>1409

Yes. I don't think it will work well anyway. Maybe as testing ground for devs. But except that any serious site would not use it as auth and spam is a problem.

Anonymous

IN

XJs3H5

No.1556

Im feeling like working on this but at a smaller scope. User selects table name and all fields and their data type. Then he gets a Create , Read , Update , Delete links. Will think about it more and start

Anonymous

IN

mmToFH

No.1623

Backend done.

Frontend will be done by noon probably.

Will buy domain , vps and setup tomorrow

Anonymous

IN

DJlCrE

No.1624

>>1380(OP)

Bharattube admin doing weird shit now

Anonymous

IN

W0s0RD

No.1625

>>1624

kek

Active Users in /g/: N/A