Version of script: All LinkMan Versions
Secure LinkMan data file from viewing.
Write your message below:
Klem I am posting this as I feel many will not change the name of the main data file that the script writes to, this allows anyone that understands how and where the script writes its data to, the ability to read the file as its plain txt, now because this file will most likely contains email addresses I feel it is important to protect this file from prying eyes and spammers ...
This is what I would do to protect the file:
For those running apache you can use htaccess like so,
Create an htaccess file with this code in it, and upload it to the linkman dir.
<FilesMatch "(^linkinfo).*\.txt$">
Order deny,allow
Deny from all
</FilesMatch>
thus disallowing any outside access to our data file.
Klem, you might want to think of adding this in with the script dl as most scripts out there I have tested seem to have this wide open. just a suggestion unless you have a reasion why this my not be a good idea.
DC
LinkMan txt file sec suggestion
LinkMan txt file sec suggestion
To Code Or Not To Code That Is The Question?
Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...
Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...
Sure, I can add that to the download. In fact since it's a simple file name you don't have to use regular expressions in the FilesMatch, you can simply use
<FilesMatch "linkinfo.txt">
Order deny,allow
Deny from all
</FilesMatch>
This will only work on Apache servers though, for future versions I will think of using a *.php file for storing the data and I can easily make that one non-displayable in the browser on any PHP enabled server.
<FilesMatch "linkinfo.txt">
Order deny,allow
Deny from all
</FilesMatch>
This will only work on Apache servers though, for future versions I will think of using a *.php file for storing the data and I can easily make that one non-displayable in the browser on any PHP enabled server.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
You are correct I did it as exp because I felt some might want to block other data files so you have the ability to do so if one wishes yes I mentioned this for apache
So you could then do the following so I made examp below.
however the most important to do this with in my opin is the main links data file ... either should work fine ...
<FilesMatch "(^linkinfo|banned_websites).*\.txt$">
Order deny,allow
Deny from all
</FilesMatch>
And yes you can make it write a php based file that is not viewable but I felt this was a good quick fix you can easily include in the packaged dl ...
DC
So you could then do the following so I made examp below.
however the most important to do this with in my opin is the main links data file ... either should work fine ...
<FilesMatch "(^linkinfo|banned_websites).*\.txt$">
Order deny,allow
Deny from all
</FilesMatch>
And yes you can make it write a php based file that is not viewable but I felt this was a good quick fix you can easily include in the packaged dl ...
DC
To Code Or Not To Code That Is The Question?
Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...
Was my post of any help to you? if so please do [url=http://www.clickcraft.net/slice_donations.php][b]Buy Me A Slice[/b][/url] ...