php files

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

8 replies · 629 views · started 17 years ago · 1 min read

4 participants
crazybrumi Super moderator Principal · 1,064 posts #1
<Files *.php>
order deny,allow
allow from filename.php
deny from all
</Files>

i tryed to create a code for htaccess. for people only to be able to access certain php files in a folder. this dosnt seem to work givs me denied page. is there anything i can do to the code to make this work ?

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

subzero Super moderator Fellow · 3,954 posts #2
<Files *.php>
order deny,allow
deny from all
allow from filename.php
</Files>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #4

use this then

# secure htaccess file

ServerSignature Off

Options -Indexes 

allow from localhost

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #6
<Files ~ "\.(php)$">
  order allow,deny
  deny from all
allow from filename.php
</Files>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ewanz Developer · 187 posts #7

SetEnvIfNoCase User-Agent libwww-perl block_bad_bots

to deny more User-Agents, copy the line above and change

only libwww-perl, to match the new name.

deny from env=block_bad_bots

how about this?

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ewanz Developer · 187 posts #8

RewriteCond %{QUERY_STRING} ^.=(ht|f)tp://.$ [NC]

Allow yourself, for SMF Forum Package Manager upgrades.

Set it to your own IP address so you are the only one who won't be blocked.

#RewriteCond %{REMOTE_ADDR} !^111.222.333.444$ [NC] RewriteRule .* - [F,L]

how about this too? ekekeke

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
ori Lead · 512 posts #9

your trying to allow from a file think it has to be a ip or something similar

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close