premium url shortener

Installation


Using the Web InstallerVideo Tutorial

  1. Upload and extract "main.zip" to your server
  2. Point your browser to http://yoursite.com
  3. The new document root is the /public folder so we highly recommend to change the document root for your domain to /public if possible otherwise we have added a .htaccess file to direct all traffic to the /public folder however on some servers it might not work. If you don't see the installer or you receive 404 errors, you will need to change your document path for your domain to make sure /public is the final folder.
  4. Follow the step by step instructions
  5. Login as admin using the credentials you set at step 3
  6. Click on "Admin Panel" button at the top and go to settings to configure the application.


 Admin > settings > Advanced Settings >

If you have additional domains and you want to prevent people from using the root domain to shorten, disable this.


disable this


Go to Admin > Advanced Settings > Enable Multiple Domains > add domain in the field like https://url24.top and save. It will be selected as default. If you want to prevent users from using your main domain, you can disable Shorten with maindomain.com


on shorting here after adding custom domains qr is not showing properly

QR URL is wrong


should be

url24.top/ZxJkC/qr


When adding the domain make sure to add http:// or https://.


upon checking on https://www.redirect-checker.org/ I found that you are using 301 for redirection can you please tell me I want to use 302 for all redirection and not 301, let me know even if I need to change PHP files I have no issues.


Thanks


Child Themes

You can now create child themes very easily without worrying about updates. You can now change only what you want and Premium URL Shortener will fallback on the default theme for other components which will always be up-to-date. The steps are very simple:

  1. Copy or clone the default theme located in storage/themes/
  2. Open the file config.json located in the new copy of the theme
  3. Find "child":false, and change that to "child":true,
  4. Browse to the new directory and delete everything you don't want to change, except config.json. For example if you only want to change the homepage, delete everything but index.php and config.json.
  5. Go to the admin panel  themes and activate the new Child Theme and voila.
  6. Now you can make any changes you want and it will always be there.

Do not delete the default theme from Premium URL Shortener! This will be used as fallback.




Google conversion tag added on top


google tag should be on every page


/home/urlshortener.top/public_html/storage/themes/bum/user


index.php


URL will be the final URL where purchase or sign completed like thank you page




/home/urlshortener.top/public_html/storage/themes/bum/index.php



also added in register.php(as tag should be on every page)


/home/urlshortener.top/public_html/storage/themes/bum/auth


register.php



Change 301 to 302 redirect



root@vmi728455:/home/urlshortener.top/public_html# egrep -Rw * -e "301"

app/helpers/Gate.php:        return (new Response(null, 301, ['location' => $url->url]))->send();

app/controllers/HomeController.php:            return Helper::redirect(null, 301)->to(config('home_redir'));

Binary file codecanyon-4ymtnS1m-premium-url-shortener.zip matches

core/Helper.class.php:      case '301':

core/Helper.class.php:        header('HTTP/1.1 301 Moved Permanently');


In the file app/helpers/Gate.php line 159 find the code below and change the 301 by a 302
return (new Response(null301, ['location' => $url->url]))->send();



admin/settings/users

If enabled, users will be required to create an account before being able to shorten a URL.





Enable Google Login







Application type : URLshortner.top

Authorized redirect URLs: 



Please use the link above as the authorized callback URL.



sign in with google to register URL https://urlshortener.top/user/register



added this code on in resgister.php from /home/urlshortener.top/public_html/storage/themes/bum/auth/login.php


after this line


<div class="col-md-8 col-lg-5 pt-6">



 <?php if(config('gl_connect')): ?>

                                            <div class="col-sm-12 mb-2">

                                                <a href="<?php echo route('login.google') ?>" class="btn btn-block btn-neutral btn-icon mb-3 mb-sm-0">

                                                    <span class="btn-inner--icon"><img src="<?php echo assets('images/google.svg') ?>" alt="<?php echo e("Sign in with") ?> Google"></span>

                                                    <span class="btn-inner--text"><?php echo e("Sign in with") ?> Google</span>

                                                </a>

                                            </div>

                                        <?php endif ?>

<center><h1> OR </h1></center>




1. Fixed meta and title for all URLs (in DB with the name URL stores meta title and descriptions I want to fix it to something else)


2. I have added many other domains and I want to show all other domains on the homepage for all users


3. Allow indexing of all pages getting error on search console that indexing is blocked by robots.txt I do not get any robots.txt file


Crawl allowed? info No: blocked by robots.txt


Page fetch info Failed: Blocked by robots.txt


4. How to change domain after migration


Thanks a lot



1. Fixed meta and title for all URLs (in DB with the name URL stores meta title and descriptions I want to fix it to something else)
2. I have added many other domains and I want to show all other domains in homepage for all users
3. Allow indexing of all pages getting error on search console that indexing is blocked by robots.txt I do not get any robots.txt file
Crawl allowed? info No: blocked by robots.txt
Page fetch info Failed: Blocked by robots.txt
4. How to change domain after migration


1. You can search and replace via phpmyadmin

2. This will require some big changes however I do not recommend you making all of your domains available on the homepage because they can get spammed easily.

3. Have you enabled the Block Search Engine plugin?

4. You can change it via phpmyadmin > database > settings for setting and for domains you can run a query like this

UPDATE url SET domain = 'https://newdomain' WHERE domain = 'https://olddomain';


from PHP my admin go to urlshort_db > settings> change row to 500 > URL> change it


sitemap onley showing 50 URLs


You can increase the sitemap limit from 50 by editing the file app/controllers/sitemapController.php where it says

private $numlinks = 50;




you are asking a great question and the answer is yes, links that are offered from URL shortener services build DA.

Think of those links as 301s. When you use http://bit.ly/xyz that URL is 301'd to the actual web address. As with all 301s, you do lose a bit of link juice due to the 301, but 90%+ of the value will remain.


so use 302 to see backlinks in google search console





paypal donate button


added in themes

/home/urlshort.in/public_html/storage/themes/


index.php

just before section tag <section class="slice slice-lg bg-section-secondary">


<div class="paypal-donate">

<div class="container" style="text-align: center; background-color: #CBD8C8;">

<div style="" class="text"><b>Please, donate whatever you can to support urlshort.in</b></div>

<div style="padding-bottom: 15px; font-style: italic; font-size: 14px" class="text">*No PayPal account required</div>

<form action="https://paypal.me/bumkailashkumar" method="post" target="_top">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="hosted_button_id" value="">

<input style="border: 0;" class="paypal-btn" type="image" src="https://urlshort.in/static/images/paypal.jpg" name="submit" alt="PayPal - The safer, easier way to pay online!">

<input class="paypal-btn-mobile" type="image" src="https://urlshort.in/static/images/paypal.png" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img style="border: 0;" alt="" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1" uk87n874s="">

<!--<img style="display: inline" src="/gfx/donate.gif"/>-->

</form>


<progress style="width: 240px" max="500" title="Current: 14$" value="14"></progress>

<div style="font-size: 10px; font-style: italic;" class="text">Monthly progress (14/500$)</div>

<div style="font-style: italic; padding-top: 15px;" class="text">Thank you so much!</div>

</div>

</div>



After migration


i just changed  URIs 1 from older domain to newer one only and older user also able to login and working fine






2023-09-11 05:18:17.889351 [INFO] [868593] [172.71.250.58:60284-24#urlshortener.net.com.ai] [Module:mod_security]Log Message: [client 172.71.250.58] ModSecurity: Access denied with code 403 (phase 2). Matched "Operator `Ge' with parameter `5' against variable `TX:ANOMALY_SCORE' (Value: `5' ) [file "/usr/local/lsws/conf/modsec/owasp-modsecurity-crs-3.0-master/rules/REQUEST-949-BLOCKING-EVALUATION.conf"] [line "80"] [id "949110"] [rev ""] [msg "Inbound Anomaly Score Exceeded (Total Score: 5)"] [data ""] [severity "2"] [ver "OWASP_CRS/3.3.2"] [maturity "0"] [accuracy "0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-generic"] [hostname "urlshortener.net.com.ai"] [uri "/user/login/google"] [unique_id "169440229768.021117"] [ref ""]




<LocationMatch  /user/login/google >

SecRuleRemoveById 949110

</LocationMatch>

added in modsecurity rules

Comments

Popular posts from this blog

how to install internet download manger in linux

ImportError: DLL load failed while importing onnx_cpp2py_export