protecting the sitemap generator folder how?
« on: March 08, 2018, 09:09:04 AM »
How do I protect the sitemap generator folder?

So only I can access it, do I use deny, order and allow my IP?
If so do I need to allow access to any files in that folder?
Re: protecting the sitemap generator folder how?
« Reply #1 on: March 08, 2018, 09:46:31 AM »
I think I have got it

Create a .htaccess file and put it in the generator folder with the below.
Make sure to change the IP addresses

Code: [Select]
order deny,allow
deny from all
allow from 192.168.1.5
allow from 127.0.0.1

<FilesMatch "sitemap.xsl">
allow from all
</Files>

You will need to set the IP addresses:

192.168.1.5 - This is your IP

127.0.0.1 - This is the server IP
« Last Edit: March 08, 2018, 09:52:20 AM by Crazy BigGaz »