View Single Post
Old 07-30-2025, 02:30 AM  
Paul&John
Confirmed User
 
Paul&John's Avatar
 
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,626
I've put together a small script that blurs images (JPG, WebP, GIF) on the server level. This ensures that even if a user opens an image in a new tab or window (outside of the PHP script/framework), the image will still appear blurred. The script also caches the processed images, so they don't need to be blurred again on subsequent page loads.

It is triggered only for users located in the following U.S. states, as determined by the free MaxMind GeoLite2 database: AR, AL, AZ, FL, GA, IN, ID, KY, KS, NC, ND, NE, MT, MO, MS, OK, SC, TN, TX, UT, VA, WY.

The entire setup consists of three files, plus a small change to the .htaccess file to route all JPG, WebP, and GIF requests through the script. There's no need to modify existing scripts.

The main limitation of this approach is that it only blurs images served from the same domain—embedded or externally hosted images are not affected.

https://avs.quest/
__________________
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo!
Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here
Paul&John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote