Code Monkey home page Code Monkey logo

deref's Introduction

*DEREF

Ever come across a suspicious short URL and wanted to know where it really goes?

*Deref (pronounced "De-Ref") is a quick experiment in learning AngularJS with a SlimPHP backend.

It uses cURL to follow the redirect chain on pasted URLs, logging all the hops and showing the final result using Angular and Twitter Bootstrap.

To try it out, clone the source and use Composer to install vendors:

$> composer install

Or, check it out online at https://deref.link/

Usage

Once the vendors are installed, you can set up a virtual host using apache or nginx, using a standard rewrite rule to send traffic to web/index.php.

Another option is to use the internal PHP webserver:

$> php -S localhost:8080 -t web/

This will start the server on port 8080, which you can then visit in your web browser to try out the service.

Configuration

Creating a config.php file is optional; currently, it's only needed if you want to specify analytics code.

Here's what a config.php file should look like:

<?php

return [
    'analytics' => "... code goes here ...",
];

Author

Kevin Boyd created *Deref as part of an AngularJS blog post on whateverthing.com.

*Deref is released under the MIT open-source license.

deref's People

Contributors

beryllium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deref's Issues

Support non-schema prefixed url's

Most browsers allow you to enter a url in the form of domain.tld[/path].

I think it would be convenient if this was acceptable input in the form/application as well.

FR: allow a url to be passed in on a get

WBN if I could link someone to a url already expanded. For example sending them to https://deref.link/?url=https://qrco.de/bcVFS4 would be the same result as if they went to https://deref.link/ and entered https://qrco.de/bcVFS4 and hit the CTA. Probably need to url encode the param... WBN^2 if the result page had a copyable link to share the results.

Add support for additional diagnostics

  • Show server headers
  • Offer network diagnostics like whois or ping monitoring
  • Malware scanning
  • Screenshots (perhaps interstitial ones that confirm you want to go to the site?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.