Plugin Directory

Changeset 3304947


Ignore:
Timestamp:
06/02/2025 12:10:50 PM (10 months ago)
Author:
aaextention
Message:

Update to readme again

Location:
aa-block-country-with-redirect
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aa-block-country-with-redirect/tags/1.0.1/readme.txt

    r3304401 r3304947  
    1616
    1717= Features =
     18<ol>
     19  <li><strong>IP Detection:</strong> Retrieves the visitor's IP address using multiple server variables for reliability.</li>
     20  <li><strong>Country Lookup via API:</strong> Optionally uses <code>ip-api.com</code> to detect the visitor's country based on IP.</li>
     21  <li><strong>Per-Post/Page Country Blocking:</strong> Enable or disable country blocking on individual posts, pages, or custom post types.</li>
     22  <li><strong>Custom Blocked Countries:</strong> Set blocked countries using comma-separated ISO country codes (e.g., <code>US, IN, FR</code>).</li>
     23  <li><strong>Global Country Blocking:</strong> Define global blocking rules that apply across the entire site.</li>
     24  <li><strong>Redirect Blocked Users:</strong> Automatically redirect blocked visitors to a custom URL defined in plugin settings.</li>
     25  <li><strong>Fallback Country Option:</strong> Specify a fallback country code in case API lookup fails.</li>
     26  <li><strong>Meta Box UI:</strong> Adds a meta box to all public post types for easy control of country blocking.</li>
     27  <li><strong>Secure Meta Handling:</strong> Uses WordPress nonces and capability checks to securely save meta data.</li>
     28  <li><strong>Lightweight Integration:</strong> Executes only on the front-end using the <code>template_redirect</code> hook, keeping the admin side fast.</li>
     29</ol>
     30
     31= How to use it =
    1832
    1933<ol>
    20   <li><strong>Per-post/CPT toggle</strong>
    21     <ul>
    22       <li>Enable/disable blocking per post, page, or CPT</li>
    23     </ul>
    24   </li>
    25  
    26   <li><strong>Country code input</strong>
    27     <ul>
    28       <li>Comma-separated format (e.g., <code>US,IN,UK</code>)</li>
    29     </ul>
    30   </li>
    31  
    32   <li><strong>Redirect blocked users</strong>
    33     <ul>
    34       <li>Custom URL for redirection</li>
    35     </ul>
    36   </li>
    37  
    38   <li><strong>IP geolocation</strong>
    39     <ul>
    40       <li>Uses <code>ip-api.com</code> for country lookup</li>
    41     </ul>
    42   </li>
    43  
    44   <li><strong>Security</strong>
    45     <ul>
    46       <li>Nonces for form protection</li>
    47       <li>Input sanitization</li>
    48       <li>Capability checks</li>
    49     </ul>
     34  <li><strong>Configure Global Settings:</strong> Go to the plugin settings page and enable global country blocking. Set the list of blocked country codes and the redirect URL.</li>
     35  <li><strong>Choose IP Lookup Method:</strong> Enable or disable IP lookup via <code>ip-api.com</code> based on your preference.</li>
     36  <li><strong>Block Countries Globally:</strong> Visitors from blocked countries will be automatically redirected site-wide.</li>
     37  <li><strong>Set Per-Post Blocking:</strong> Edit any post, page, or custom post type, and in the "AA Country Block Options" meta box, enable blocking and specify country codes to block for that content only.</li>
     38  <li><strong>Save Changes:</strong> Update or publish your post/page to apply per-post blocking rules.</li>
     39  <li><strong>Test Blocking:</strong> Use a VPN or proxy from a blocked country to verify the redirect works as expected.</li>
     40</ol>
     41
     42
     43
     44= Installation =
     45
     46<ol>
     47  <li>Download the plugin ZIP file from the source.</li>
     48  <li>Log in to your WordPress admin dashboard.</li>
     49  <li>Navigate to <strong>Plugins &gt; Add New</strong>.</li>
     50  <li>Click <strong>Upload Plugin</strong> and select the downloaded ZIP file.</li>
     51  <li>Click <strong>Install Now</strong> and then <strong>Activate</strong> the plugin.</li>
     52  <li>Go to the plugin settings page to configure country blocking options.</li>
     53</ol>
     54
     55
     56
     57
     58= Screenshots =
     59
     60Coming Soon ..
     61
     62
     63= Changelog =
     64
     65<ol>
     66  <li><strong>Version 1.0.1</strong> (2025-06-02)
     67    <ol>
     68      <li>Fixed IP detection logic to better handle proxy headers.</li>
     69      <li>Improved country code sanitization for per-post blocking.</li>
     70      <li>Added nonce verification to meta box save function for enhanced security.</li>
     71      <li>Optimized API request to <code>ip-api.com</code> with error handling improvements.</li>
     72      <li>Updated admin meta box UI for better usability.</li>
     73    </ol>
    5074  </li>
    5175</ol>
    5276
    53 == Installation ==
    5477
    55 1. Install as regular WordPress plugin.<br />
    56 2. Go your plugin setting via WordPress Dashboard and find "<strong>AA Block country with redirect</strong>" activate it.<br />
    57 
    58 3. Setup country code via settings. It's like for bangladesh it will be BD, for canada it will be ca
    59 
    60 
    61 
    62 == Screenshots ==
    63 
    64 
    65    
    66 
  • aa-block-country-with-redirect/trunk/readme.txt

    r3304401 r3304947  
    1616
    1717= Features =
     18<ol>
     19  <li><strong>IP Detection:</strong> Retrieves the visitor's IP address using multiple server variables for reliability.</li>
     20  <li><strong>Country Lookup via API:</strong> Optionally uses <code>ip-api.com</code> to detect the visitor's country based on IP.</li>
     21  <li><strong>Per-Post/Page Country Blocking:</strong> Enable or disable country blocking on individual posts, pages, or custom post types.</li>
     22  <li><strong>Custom Blocked Countries:</strong> Set blocked countries using comma-separated ISO country codes (e.g., <code>US, IN, FR</code>).</li>
     23  <li><strong>Global Country Blocking:</strong> Define global blocking rules that apply across the entire site.</li>
     24  <li><strong>Redirect Blocked Users:</strong> Automatically redirect blocked visitors to a custom URL defined in plugin settings.</li>
     25  <li><strong>Fallback Country Option:</strong> Specify a fallback country code in case API lookup fails.</li>
     26  <li><strong>Meta Box UI:</strong> Adds a meta box to all public post types for easy control of country blocking.</li>
     27  <li><strong>Secure Meta Handling:</strong> Uses WordPress nonces and capability checks to securely save meta data.</li>
     28  <li><strong>Lightweight Integration:</strong> Executes only on the front-end using the <code>template_redirect</code> hook, keeping the admin side fast.</li>
     29</ol>
     30
     31= How to use it =
    1832
    1933<ol>
    20   <li><strong>Per-post/CPT toggle</strong>
    21     <ul>
    22       <li>Enable/disable blocking per post, page, or CPT</li>
    23     </ul>
    24   </li>
    25  
    26   <li><strong>Country code input</strong>
    27     <ul>
    28       <li>Comma-separated format (e.g., <code>US,IN,UK</code>)</li>
    29     </ul>
    30   </li>
    31  
    32   <li><strong>Redirect blocked users</strong>
    33     <ul>
    34       <li>Custom URL for redirection</li>
    35     </ul>
    36   </li>
    37  
    38   <li><strong>IP geolocation</strong>
    39     <ul>
    40       <li>Uses <code>ip-api.com</code> for country lookup</li>
    41     </ul>
    42   </li>
    43  
    44   <li><strong>Security</strong>
    45     <ul>
    46       <li>Nonces for form protection</li>
    47       <li>Input sanitization</li>
    48       <li>Capability checks</li>
    49     </ul>
     34  <li><strong>Configure Global Settings:</strong> Go to the plugin settings page and enable global country blocking. Set the list of blocked country codes and the redirect URL.</li>
     35  <li><strong>Choose IP Lookup Method:</strong> Enable or disable IP lookup via <code>ip-api.com</code> based on your preference.</li>
     36  <li><strong>Block Countries Globally:</strong> Visitors from blocked countries will be automatically redirected site-wide.</li>
     37  <li><strong>Set Per-Post Blocking:</strong> Edit any post, page, or custom post type, and in the "AA Country Block Options" meta box, enable blocking and specify country codes to block for that content only.</li>
     38  <li><strong>Save Changes:</strong> Update or publish your post/page to apply per-post blocking rules.</li>
     39  <li><strong>Test Blocking:</strong> Use a VPN or proxy from a blocked country to verify the redirect works as expected.</li>
     40</ol>
     41
     42
     43
     44= Installation =
     45
     46<ol>
     47  <li>Download the plugin ZIP file from the source.</li>
     48  <li>Log in to your WordPress admin dashboard.</li>
     49  <li>Navigate to <strong>Plugins &gt; Add New</strong>.</li>
     50  <li>Click <strong>Upload Plugin</strong> and select the downloaded ZIP file.</li>
     51  <li>Click <strong>Install Now</strong> and then <strong>Activate</strong> the plugin.</li>
     52  <li>Go to the plugin settings page to configure country blocking options.</li>
     53</ol>
     54
     55
     56
     57
     58= Screenshots =
     59
     60Coming Soon ..
     61
     62
     63= Changelog =
     64
     65<ol>
     66  <li><strong>Version 1.0.1</strong> (2025-06-02)
     67    <ol>
     68      <li>Fixed IP detection logic to better handle proxy headers.</li>
     69      <li>Improved country code sanitization for per-post blocking.</li>
     70      <li>Added nonce verification to meta box save function for enhanced security.</li>
     71      <li>Optimized API request to <code>ip-api.com</code> with error handling improvements.</li>
     72      <li>Updated admin meta box UI for better usability.</li>
     73    </ol>
    5074  </li>
    5175</ol>
    5276
    53 == Installation ==
    5477
    55 1. Install as regular WordPress plugin.<br />
    56 2. Go your plugin setting via WordPress Dashboard and find "<strong>AA Block country with redirect</strong>" activate it.<br />
    57 
    58 3. Setup country code via settings. It's like for bangladesh it will be BD, for canada it will be ca
    59 
    60 
    61 
    62 == Screenshots ==
    63 
    64 
    65    
    66 
Note: See TracChangeset for help on using the changeset viewer.