Jump to content

Serial Code Detection Page [php]

Nater

I know nothing about php but I'm pretty sure this will be simple, can someone help me out a bit.

 

mywebsite.com/serials.php?="Serial Number"

 

If exists in database > write line "exists"/else "invalid" > add 1 to uses, if 2 uses it deletes serial from database > adds to the used database with another field for the IP/Mac Address who registered it

 

also

 

mywebsite.com/addserials.php

 

a text area and password area to add a new list of serials.

Link to comment
Share on other sites

Link to post
Share on other sites

 for the IP/Mac Address who registered it

 

A little guideline when it comes to using IP addresses as a way of proving identity. Most internet users have dynamic IPs, meaning that their IP address will rotate to another every 21 days, unless their router explicitly renews it with the ISP (which isn't always the case). This means that if a user has the serial registered under 1 IP, and for example they lose power, when they come back online with a different IP, they lose the serial for your software too.

 

By the way, MAC addresses of user equipment isn't exposed online. You'd need to have to make dedicated software for the user to run in able to get their NIC MAC address. And then again, for example if the user upgrades their mobo, they lose the serial for your software.

 

If this is how you intend for the software to work, then no problem at all. I guess the user of the software can contact you if there's any issues with it.

 

As for the code, I might draft something up later, but at the moment I'm feeling kinda lazy :(

Speedtests

WiFi - 7ms, 22Mb down, 10Mb up

Ethernet - 6ms, 47.5Mb down, 9.7Mb up

 

Rigs

Spoiler

 Type            Desktop

 OS              Windows 10 Pro

 CPU             i5-4430S

 RAM             8GB CORSAIR XMS3 (2x4gb)

 Cooler          LC Power LC-CC-97 65W

 Motherboard     ASUS H81M-PLUS

 GPU             GeForce GTX 1060

 Storage         120GB Sandisk SSD (boot), 750GB Seagate 2.5" (storage), 500GB Seagate 2.5" SSHD (cache)

 

Spoiler

Type            Server

OS              Ubuntu 14.04 LTS

CPU             Core 2 Duo E6320

RAM             2GB Non-ECC

Motherboard     ASUS P5VD2-MX SE

Storage         RAID 1: 250GB WD Blue and Seagate Barracuda

Uses            Webserver, NAS, Mediaserver, Database Server

 

Quotes of Fame

On 8/27/2015 at 10:09 AM, Drixen said:

Linus is light years ahead a lot of other YouTubers, he isn't just an average YouTuber.. he's legitimately, legit.

On 10/11/2015 at 11:36 AM, Geralt said:

When something is worth doing, it's worth overdoing.

On 6/22/2016 at 10:05 AM, trag1c said:

It's completely blown out of proportion. Also if you're the least bit worried about data gathering then you should go live in a cave a 1000Km from the nearest establishment simply because every device and every entity gathers information these days. In the current era privacy is just fallacy and nothing more.

 

Link to comment
Share on other sites

Link to post
Share on other sites

A little guideline when it comes to using IP addresses as a way of proving identity. Most internet users have dynamic IPs, meaning that their IP address will rotate to another every 21 days, unless their router explicitly renews it with the ISP (which isn't always the case). This means that if a user has the serial registered under 1 IP, and for example they lose power, when they come back online with a different IP, they lose the serial for your software too.

 

By the way, MAC addresses of user equipment isn't exposed online. You'd need to have to make dedicated software for the user to run in able to get their NIC MAC address. And then again, for example if the user upgrades their mobo, they lose the serial for your software.

 

If this is how you intend for the software to work, then no problem at all. I guess the user of the software can contact you if there's any issues with it.

 

As for the code, I might draft something up later, but at the moment I'm feeling kinda lazy :(

 

 

I'm only using the IP for if there's an issue with their mac address, I can at least compare locations and isp to figure out if they're telling the truth, also giving them 2 chances to either put it on another computer or as a back up.

 

99% of the people using this though will be using it on a server so very doubtful that the address will change, and if it does more than likely they're using one of our servers so it can easily be corrected.

 

So for the mac address should I be doing mywebsite.com/serials.php?="Serial Number-macaddress"

 

The reason I want the mac address in there is because if someone tries to refund via paypal I can just ban their mac address.

 

A draft would help a ton.

Link to comment
Share on other sites

Link to post
Share on other sites

Taught myself how to do all but the adding them in part

 

how do I make a text are and a submit button adds every line in the text area as a new item in my database?

Link to comment
Share on other sites

Link to post
Share on other sites

Taught myself how to do all but the adding them in part

 

how do I make a text are and a submit button adds every line in the text area as a new item in my database?

Well text-areas don't actually have lines since they can be resized (unless that is disabled), so you would have to get the current width and segment the entire text into pieces the width of the text-area or set, definitive width.

Link to comment
Share on other sites

Link to post
Share on other sites

Well text-areas don't actually have lines since they can be resized (unless that is disabled), so you would have to get the current width and segment the entire text into pieces the width of the text-area or set, definitive width.

 

You can get lines by splitting "\n".

 

Figured out how to do everything, my serial code system is now functional :D

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×