Graybeard
Well-Known Member
This applies to ``explicit`` content not *adult dating*
The Texas AG sued the current owners of Pornhub
https://www.texasattorneygeneral.go.../images/press/Texas v AYLO Filed Petition.pdf <copy of lawsuit
5th Circuit Appeals Court upheld that state law the other day.
Pornhub bans all IP users from Texas (the evil empire strike back
)
If you are using Maxmind, have the database installed --here is a script to use to blow off Texas --thanks ChatGPT haven't used it yet but it looks OK to me (in PHP)
The Texas AG sued the current owners of Pornhub
https://www.texasattorneygeneral.go.../images/press/Texas v AYLO Filed Petition.pdf <copy of lawsuit
5th Circuit Appeals Court upheld that state law the other day.
Pornhub bans all IP users from Texas (the evil empire strike back
If you are using Maxmind, have the database installed --here is a script to use to blow off Texas --thanks ChatGPT haven't used it yet but it looks OK to me (in PHP)
PHP:
<?php
require_once 'vendor/autoload.php';
use GeoIp2\Database\Reader;
// Use the IP address of the client
$ipAddress = $_SERVER['REMOTE_ADDR'];
// Path to your GeoLite2 City database file
$database = '/path/to/GeoLite2-City.mmdb';
// Create a new Reader instance
$reader = new Reader($database);
try {
// Lookup the IP address in the database
$record = $reader->city($ipAddress);
// Get the state of the IP address
$state = $record->mostSpecificSubdivision->name;
// Check if the state is Texas
if ($state == "Texas") {
// Direct traffic to the Texas-specific location
header('Location: http://your-texas-specific-url.com');
exit;
} else {
// Direct traffic to the default location
header('Location: http://your-default-url.com');
exit;
}
} catch (\GeoIp2\Exception\AddressNotFoundException $e) {
// Handle the error when the IP address is not found in the database
echo 'IP address not found in the database.';
} catch (Exception $e) {
// Handle other possible errors
echo 'An error occurred: ' . $e->getMessage();
}
?>