{"id":503,"date":"2025-12-21T16:24:18","date_gmt":"2025-12-21T16:24:18","guid":{"rendered":"https:\/\/xuan.co.uk\/?p=503"},"modified":"2025-12-21T20:39:31","modified_gmt":"2025-12-21T20:39:31","slug":"small-linkedtree-clone-to-list-your-links-under-one-url","status":"publish","type":"post","link":"https:\/\/xuan.co.uk\/?p=503","title":{"rendered":"Small linkedtree clone to list your links under one URL"},"content":{"rendered":"<p>I&#8217;ve created a small site that allows to share one link to your favourite links on the web for WhatsApp and other social media platforms.<\/p>\n<p><a href=\"https:\/\/xuan.co.uk\/wp-content\/uploads\/2025\/12\/links.zip\">DOWNLOAD HERE<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Installation Instructions<\/strong><\/p>\n<p data-path-to-node=\"17\">Follow these steps to deploy the application.<\/p>\n<p data-path-to-node=\"18\"><b data-path-to-node=\"18\" data-index-in-node=\"0\">1. Prepare the Environment<\/b><\/p>\n<ul data-path-to-node=\"19\">\n<li>\n<p data-path-to-node=\"19,0,0\">Upload the <code data-path-to-node=\"19,0,0\" data-index-in-node=\"11\">index.php<\/code> file to your web server.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"19,1,0\">Create a directory named <code data-path-to-node=\"19,1,0\" data-index-in-node=\"25\">data<\/code> in the same folder as <code data-path-to-node=\"19,1,0\" data-index-in-node=\"52\">index.php<\/code>.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"19,2,0\">Ensure the <code data-path-to-node=\"19,2,0\" data-index-in-node=\"11\">data<\/code> directory has <b data-path-to-node=\"19,2,0\" data-index-in-node=\"30\">write permissions<\/b> (CHMOD 755 or 777 depending on your server environment).<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"20\"><b data-path-to-node=\"20\" data-index-in-node=\"0\">2. Secure the Data<\/b> Create a <code data-path-to-node=\"20\" data-index-in-node=\"28\">.htaccess<\/code> file inside the <code data-path-to-node=\"20\" data-index-in-node=\"54\">data<\/code> folder with the following line to prevent public access to your CSV and password files:<\/p>\n<div class=\"code-block ng-tns-c554500580-95 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwjFo4LAx86RAxUAAAAAHQAAAAAQxAE\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c554500580-95 ng-star-inserted\">\n<p><span class=\"ng-tns-c554500580-95\">Apache<\/span><\/p>\n<\/div>\n<div class=\"formatted-code-block-internal-container ng-tns-c554500580-95\">\n<div class=\"animated-opacity ng-tns-c554500580-95\">\n<pre class=\"ng-tns-c554500580-95\"><code class=\"code-container formatted ng-tns-c554500580-95\" role=\"text\" data-test-id=\"code-content\"><span class=\"hljs-attribute\">Require<\/span> <span class=\"hljs-literal\">all<\/span> denied\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p data-path-to-node=\"22\"><b data-path-to-node=\"22\" data-index-in-node=\"0\">3. Initial Configuration<\/b><\/p>\n<ul data-path-to-node=\"23\">\n<li>\n<p data-path-to-node=\"23,0,0\">Open your browser and navigate to the <code data-path-to-node=\"23,0,0\" data-index-in-node=\"38\">index.php<\/code> URL.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"23,1,0\">The script will detect a new installation and present the <b data-path-to-node=\"23,1,0\" data-index-in-node=\"58\">Initial Setup<\/b> screen.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"23,2,0\">Set your admin password. This will create the <code data-path-to-node=\"23,2,0\" data-index-in-node=\"46\">auth.txt<\/code> file and initialise <code data-path-to-node=\"23,2,0\" data-index-in-node=\"75\">links.csv<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>I&#8217;ve also included ver.php for bit of technical server info.<\/p>\n<p>&nbsp;<\/p>\n<h3 data-path-to-node=\"3\">User Feature List<\/h3>\n<p data-path-to-node=\"4\">The application is divided into a public-facing directory and a private management suite.<\/p>\n<p data-path-to-node=\"5\"><b data-path-to-node=\"5\" data-index-in-node=\"0\">Public Features<\/b><\/p>\n<ul data-path-to-node=\"6\">\n<li>\n<p data-path-to-node=\"6,0,0\"><b data-path-to-node=\"6,0,0\" data-index-in-node=\"0\">Curated Directory<\/b>: Displays links organised by logical sections.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"6,1,0\"><b data-path-to-node=\"6,1,0\" data-index-in-node=\"0\">Automatic Sorting<\/b>: Lists sections by defined priority and links alphabetically or by custom order within those sections.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"6,2,0\"><b data-path-to-node=\"6,2,0\" data-index-in-node=\"0\">Responsive Design<\/b>: The layout adapts for optimal viewing on mobile, tablet, and desktop devices.<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"7\"><b data-path-to-node=\"7\" data-index-in-node=\"0\">Admin Features<\/b><\/p>\n<ul data-path-to-node=\"8\">\n<li>\n<p data-path-to-node=\"8,0,0\"><b data-path-to-node=\"8,0,0\" data-index-in-node=\"0\">Secure Authentication<\/b>: Password-protected access using industry-standard hashing.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,1,0\"><b data-path-to-node=\"8,1,0\" data-index-in-node=\"0\">Brute-Force Protection<\/b>: Automatic 10-minute lockout after 3 failed login attempts.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,2,0\"><b data-path-to-node=\"8,2,0\" data-index-in-node=\"0\">Visual Reordering<\/b>: Drag-and-drop interface to move links between sections or reorder entire categories.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,3,0\"><b data-path-to-node=\"8,3,0\" data-index-in-node=\"0\">Live Editing<\/b>: Edit URLs and descriptions directly within the management list.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,4,0\"><b data-path-to-node=\"8,4,0\" data-index-in-node=\"0\">Flat-File Storage<\/b>: Operates entirely without a database, using CSV and text files for easy backups and portability.<\/p>\n<\/li>\n<\/ul>\n<hr data-path-to-node=\"9\" \/>\n<h3 data-path-to-node=\"10\">Operation Instructions<\/h3>\n<h4 data-path-to-node=\"11\">1. Managing Sections and Links<\/h4>\n<ul data-path-to-node=\"12\">\n<li>\n<p data-path-to-node=\"12,0,0\"><b data-path-to-node=\"12,0,0\" data-index-in-node=\"0\">Adding Links<\/b>: Use the &#8220;Add New Link&#8221; form. Typing a new &#8220;Section Title&#8221; creates a new section at the top of the list; selecting an existing one adds the link to the bottom of that section.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"12,1,0\"><b data-path-to-node=\"12,1,0\" data-index-in-node=\"0\">Reordering<\/b>:<\/p>\n<ul data-path-to-node=\"12,1,1\">\n<li>\n<p data-path-to-node=\"12,1,1,0,0\">To move a <b data-path-to-node=\"12,1,1,0,0\" data-index-in-node=\"10\">Section<\/b>, click and hold the \u2630 icon on the section header and drag it to a new position.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"12,1,1,1,0\">To move a <b data-path-to-node=\"12,1,1,1,0\" data-index-in-node=\"10\">Link<\/b>, use the <code data-path-to-node=\"12,1,1,1,0\" data-index-in-node=\"24\">::<\/code> handle to drag it within its section or into a different section.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p data-path-to-node=\"12,2,0\"><b data-path-to-node=\"12,2,0\" data-index-in-node=\"0\">Saving Changes<\/b>: Drag-and-drop movements and text edits are only saved to the server when you click the <b data-path-to-node=\"12,2,0\" data-index-in-node=\"103\">&#8220;Update All Links&#8221;<\/b> button.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"12,3,0\"><b data-path-to-node=\"12,3,0\" data-index-in-node=\"0\">Deletion<\/b>: Click the &#8220;Delete&#8221; button next to any link for immediate removal after confirmation.<\/p>\n<\/li>\n<\/ul>\n<h4 data-path-to-node=\"13\">2. Security Management<\/h4>\n<ul data-path-to-node=\"14\">\n<li>\n<p data-path-to-node=\"14,0,0\"><b data-path-to-node=\"14,0,0\" data-index-in-node=\"0\">Password Updates<\/b>: Change your access credentials at any time via the &#8220;Change Admin Password&#8221; section at the bottom of the admin panel.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"14,1,0\"><b data-path-to-node=\"14,1,0\" data-index-in-node=\"0\">Lockout Recovery<\/b>: If locked out, you must wait 10 minutes before the system accepts the correct password again. You can also delete auth.txt and it will allow you to set a new password if you forgotten it.<\/p>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve created a small site that allows to share one link to your favourite links on the web for WhatsApp and other social media platforms. DOWNLOAD HERE &nbsp; Installation Instructions Follow these steps to deploy the application. 1. Prepare the Environment Upload the index.php file to your web server. Create <a class=\"more-link\" href=\"https:\/\/xuan.co.uk\/?p=503\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-503","post","type-post","status-publish","format-standard","hentry","category-tech-tips"],"_links":{"self":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=503"}],"version-history":[{"count":3,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/503\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/503\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}