Search Posts

Category: Java

iptables Specify multiple –dport, –sport

  ■ Show rule details

■ Specify multiple ports

■ Specify port range

* –Dport and –sport can not be specified at the same time.

check user meta change when update profile

profile_update hook allows you to access data for a user immediately after their database information is updated. Two arguments are passed to functions using this hook: “user_id” (int) and “old_user_data” (object).

only values from the main wp_users table and a bunch of capabilities. How to grab the previously changed user_meta value (or detect a changed user_meta value) when a profile is saved in the admin?


Get Gallery 2


Apache use .htaccess file to shield wget download site content

It was found that although wget follows the rules of robots.txt, that one can still go around and now share the shielding method I used myself: 1. Block download any file .htaccess ? 1 2 3 4 5 6 SetEnvIfNoCase User-Agent “^wget” bad_bot Order Allow,Deny Allow from all Deny from env=bad_bot 2. Block download of partial files .htaccess ? 1 2 3 4 5 6 7 8 SetEnvIfNoCase User-Agent “^Wget” bad_bot SetEnvIfNoCase User-Agent “^Wget/1.5.3” bad_bot […]

Next Page »