Join us on Slack!
Imagination is more valuable than knowledge - Albert Einstein
Sunday, December 15, 2019
Navigation
Home
 Find:
 Information:
Learn
Communicate
Submit
Shop
Challenges
 Exploit:
 Programming:
 Think:
 Track:
 Patch:
 Other:
 Need Help?
Other
Members Online
Total Online: 58
Guests Online: 52
Members Online: 6

Registered Members: 121045
Newest Member: nabewicatiw
Latest Articles
View Thread

HellBound Hackers | HellBound Hackers | Questions

Author

Question about HBH's user pages

Serosin
Member



Posts: 18
Location:
Joined: 31.07.13
Rank:
Uber Elite
Posted on 16-09-14 04:08
So, I'm making a website... really more like a web environment where I can try out new things and ideas. One of the sites I'm using for reference is HBH.

So, I come on here to get an idea of how the user profile pages work and the URL box is like this:

www.hellboundhackers.org/user/Serosin.html

And it's like that for every other user, too.
So, does everyone with an account on this site have their own, separate page on a server somewhere? What I was trying to do was make one single user page, and then populate it differently based on who you want to look at with server side language magic. Does HBH just create a new user page every time there's a new account and stick it onto the site? That seems cumbersome.


i1287.photobucket.com/albums/a629/Serosin/SerosinGCircuits500x208_zps71acc69b.png
Author

RE: Question about HBH's user pages

MrCyph3r
npm ERR!



Posts: 786
Location:
Joined: 09.08.14
Rank:
God
Posted on 16-09-14 09:16
Nope, it would be crazy Smile

Well, the simplest answer to your question is URL Rewriting... this way you only need minimal changes to your project.

Another way to go is to use a Routing Engine... For example if you take a look at any php framework you will see that this feature is already there... just to name some of them: Symfony, Laravel, CodeIgniter and so on (just google for php framework).
But keep in mind that this solution will require you much work since it is considered "application code", so you need unit tests to check your routes otherwise you may mess up your app.

You should choose which method to use depending on your needs, some times a routing engine is enough, sometimes you only want to use some rewrite rules but bigger projects, in my opinion, should use both of them.

Now I'm out for work and so I don't have much time to explain, maybe I'll do later...

Anyway, if you browse the web you should find tons of useful papers and documentations.
Author

RE: Question about HBH's user pages

Serosin
Member



Posts: 18
Location:
Joined: 31.07.13
Rank:
Uber Elite
Posted on 16-09-14 14:29
This was very helpful. Thanks Grin

I'll be looking through papers and other resources now that I know what these techniques are called, but sure, tell me more if you've got a chance and still feel like going into detail. Any help would be appreciated.


i1287.photobucket.com/albums/a629/Serosin/SerosinGCircuits500x208_zps71acc69b.png
Author

RE: Question about HBH's user pages

MrCyph3r
npm ERR!



Posts: 786
Location:
Joined: 09.08.14
Rank:
God
Posted on 20-09-14 23:04
Well, I really encourage you to read through some docs because in my experience this is the best method to learn new things.
Also you can better understand what you may need in your particular project and then ask for more specific help.
It would be impossible for me to cover all the aspect of these concepts in a forum post, and probably pointless.

Anyway, if you still need help feel free to pm me and I'll be glad to help you.