Learn php. and html.
Or just copy - paste some of it from the web.
You should do the following:
1. Know how to edit .htaccess file properly
For example, say you have a .log file. Analyse it and you see this: facebookexternalhit/1.1 (+
http://www.facebook.com/externalhit_uatext.php). Most likely a bot, block it (if is it coming to your page way too often). After that, you should edit your .htaccess file. For example:
PHP:
#redirect spiders
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} facebookexternalhit [NC,OR]
RewriteCond %{REQUEST_URI} !\/nocrawler.htm
RewriteRule .* http://yoursite/fuckoffspider.htm [L]
After that, you should make a new legit website on
http://yoursite/fuckoffspider
You can't really expect to win vs Instagram who was tonnes of money and probably some crazy $500000 spiders vs your $0 link shortener.