PHPackages                             kaleidpixel/jpipallow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. kaleidpixel/jpipallow

ActiveLibrary[Security](/categories/security)

kaleidpixel/jpipallow
=====================

A tool designed to generate a .htaccess file that exclusively allows access from Japanese IP addresses, ensuring web content is accessible only within Japan.

1.1.0(2y ago)04MITPHPPHP ^7.3||^8.0

Since Oct 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kaleidpixel/jpipallow)[ Packagist](https://packagist.org/packages/kaleidpixel/jpipallow)[ RSS](/packages/kaleidpixel-jpipallow/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

JPIPAllow
=========

[](#jpipallow)

A tool designed to generate a .htaccess file that exclusively allows access from Japanese IP addresses, ensuring web content is accessible only within Japan.

Document
========

[](#document)

Coding is quite simple. The options are only simple, so you won't get lost.

Options
-------

[](#options)

OptionDescription**server**
*default: apache*Apache or Nginx**ipv**
*default: 0*Specify the version of the IP Address with a single digit (4 or 6).**output\_path**
*default: empty*File path including the name of the file to output the results.**add\_before\_str**
*default: empty*.**add\_before\_str**
*default: empty*.Methods
-------

[](#methods)

MethodParameterDescription**read()**bool $echo = false
bool $force = falseCreate a list of IP addresses. If already created, cache it for one day.Basic markup
------------

[](#basic-markup)

What follows is the simplest coding.

```
