• Welcome to Sitemap Generator Forum.
 

protecting the sitemap generator folder how?

Started by GazCBG, March 08, 2018, 09:09:04 AM

Previous topic - Next topic

GazCBG

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?

GazCBG

#1
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


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