Note
Цей документ має переклад українською.
This website is designed for creating short URLs.
The website supports two languages: English and Ukrainian. Flask-Babel is used for localization.
Note
The website selects the language based on your browser's selected language.
The website allows users to create and edit short URLs. You can edit the destination (or "long") URL of a short URL on the page 127.0.0.1:5000/<short_url>/modify, but only if a password was provided during the creation process.
Note
If 'long' URL does not include http://
or https://
, https://
will be added automatically.
Important
Password must be strong.
In the 127.0.0.1:5000/<short_url>/modify page you can not only edit the short URL but also change password.
Important
Password must be strong.
By visiting the 127.0.0.1:5000/<short_url>/info page you can view details such as when the short URL was created and where it redirects.
The website uses Flask, Flask-Babel and bcrypt.
Important
Python 3.9 or later must be installed.
Dependencies can be installed with the following command:
pip install -r requirements.txt
pip3 install -r requirements.txt
Use following command
python app.py
python3 app.py
This will host web server at the IP address 127.0.0.1 and port 5000. Address and port can be changed inconfig.py file.
Password are hashed, so they cannot be reverted to original state.
Module bcrypt is used for hashing.
Important
Always use strong passwords. Hashing cannot protect against weak passwords.