Skip to content
Primary Navigation Menu
Menu
  • Home
  • About & Contact
  • Advertise
  • Subscribe
  • Privacy Policy
David Yin's Blog
Tech geek. Life geek.

block

Prevent the direct IP address access to Nginx webserver

2022-05-21
In: L.A.M.P.
Tagged: "ip address", 404, ban, block, direct access, nginx

First, make sure all the virtual host site conf file has no default_server. Then, make a new conf file under /etc/nginx/conf.d/. For me I use default.conf. Add the following into this file to block all the direct IP access for port 80, or http. where _ catches all the domainContinue Reading

How to block the hotlink by referrer

2014-01-15
In: Web & Network
Tagged: block, htaccess, referrer

Blocking users or sites that originate from a particular domain is a very useful trick of .htaccess. Lets say you check your logs one day, and see tons of referrals from a particular site, yet upon inspection you can’t find a single visible link to your site on theirs. TheContinue Reading



Tags

"new features" "phpBB 3" "speed test" "Windows 7" beta Blog bug calibre Canada Centos Code download dreamhost error Firefox firmware freeware game Google how-to installation internet Linux MovableType MT MySQL performance PHP plugin release review router security server setting software test tool ubuntu update upgrade voip VPS windows wordpress

Useful links

  • Alive Math Worksheet
  • Free InOut Board
  • Web Site Directory
  • Free Thinking
  • Dba notes
  • aw’s Blog
  • OneLaunch

Categories

  • Digest (75)
  • DreamHost Log (41)
  • Hardware (351)
  • Independent Thinking (28)
  • Insurance (5)
  • jQuery (9)
  • L.A.M.P. (240)
  • Money Maker (22)
  • My Life (111)
    • Journey of Faith (1)
    • Shanghai food (1)
  • Notes of MovableType (127)
  • phpBB Mod & Tips (14)
  • Reviews (124)
    • Freeware Review (43)
  • Save Money (2)
  • SEO & SEM (9)
  • Software (266)
  • Two Week Campaign (13)
  • Uncategorized (1)
  • Vehicles (14)
  • VOIP (38)
  • Web & Network (386)
  • WordPress Notes (52)

Archives

© David Yin. Yinfor.com All rights reserved. 2004 - 2022