NiftyHost Forums (Archive)
URL short redirection that's little different from the traditional - Printable Version

+- NiftyHost Forums (Archive) (https://niftyhost.chary.us/support)
+-- Forum: NiftyHost (https://niftyhost.chary.us/support/forum-3.html)
+--- Forum: Site Showcase (https://niftyhost.chary.us/support/forum-19.html)
+--- Thread: URL short redirection that's little different from the traditional (/thread-1492.html)

Pages: 1 2


URL short redirection that's little different from the traditional - AFN - 01-22-2012

Over the past few days I have been working on a new URL short redirection website that is a little different from the traditional URL short redirection websites. Instead of just making the link short and then having no warning of what the target website is, I have put a message along with the full URL of the target website and links to how that target website did or if there are any things that someone should know about.

Website URL is http://asx.me



RE: URL short redirection that's little different from the traditional - Zach - 01-22-2012

I like it. You should add some stuff, though.
  • Add sequential URL generation so that users can leave the second field blank. I'm assuming that you're using a MySQL table with an auto_increment field, in which case you could use mysql_insert_id() in conjunction with some base-36 fumbling to get an alphanumeric, case-sensitive shortcode.
  • Why not see if McAfee, WoT and Norton have APIs available? That way you can let users quickly see how safe the site is without making them leave your site, which is somewhat inconvenient.
Other than that, it's very nice.


RE: URL short redirection that's little different from the traditional - Serial Thrilla - 01-22-2012

It's "Stop Online Piracy Act" not "Piract Act".

Explain what seed is, please?


RE: URL short redirection that's little different from the traditional - Zach - 01-22-2012

"Seed" is your short URL's ID.
http://asx.me/?seed


RE: URL short redirection that's little different from the traditional - Serial Thrilla - 01-22-2012

Oh, thanks.

But this is kinda of weird.

I'd use Short URL ID or like costum alias.


RE: URL short redirection that's little different from the traditional - Zach - 01-22-2012

Yeah. "Seed" is usually a short string used to create stronger hashes, not an alias for a long URL.


RE: URL short redirection that's little different from the traditional - HiddenKnowledge - 01-22-2012

It is funny how it permits https urls. Also, you should like.. strip_tags() the userinput everywhere and check if the domain/'seed' looks atleast a bit valid.


RE: URL short redirection that's little different from the traditional - AFN - 01-23-2012

Thank you everyone for your feedback.

I now changed the word from “seed” to “custom name”.

Zack, I like your idea about having McAfee, WoT and Norton AIP on my site, however this PHP script came from BrokenScript.com witch is a little tricky on getting everything to work, do not know a whole lot of PHP coding. I am not source exactly how to show there ratings on my website using there APIs. I agree leave my site, maybe somewhat inconvenient.

HiddenKnowledge I do not understand what you mean by strip_tags(). I’m lost there.

Zack I also do not understand what you mean by “MySQL table with an auto_increment field, in which case you could use mysql_insert_id() in conjunction with some base-36 fumbling to get an alphanumeric, case-sensitive shortcode”. I’m also lost there.

Once again thank you for your feedback.


RE: URL short redirection that's little different from the traditional - Zach - 01-23-2012

I was telling you how you could automatically generate sequential alphanumeric IDs. I thought you knew PHP.


RE: URL short redirection that's little different from the traditional - AFN - 01-24-2012

That's alright. Could you tell me what is automatically generate sequential alphanumeric ID?