Hi folks, I am new here. I have just deployed my own gallery.
Is there a way to enable some sort of filter within X3 script restricting where the admin connects to the configuration panel from?
X3 Photo Gallery Support Forums
There is no simple recipe to allow IPs from ONE country, as one country (depending on what country) can have thousands of IP ranges. For example Germany:Daystate wrote:How can I restrict access to X3 control panel to IPs from one country as I do not have static IP but can happily limit access to one country only.
# ADMIN PROTECT, IP only
RewriteCond %{REQUEST_URI} ^(.*)panel
RewriteCond %{REMOTE_ADDR} !^217\.237\.156\.[0-9]+
RewriteCond %{REMOTE_ADDR} !^2\.20\.248\.[0-9]+
RewriteRule .* - [F,NS]