Deny all traffic ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Deny all traffic ?

Postby fyndler » 08. December 2009 09:48

Hi,

Is it possible to make something to deny anyone for visiting my website ?

Im about to launch my new theme im been working on for a while but need a houer or so to setup the theme and things like that
fyndler
 
Posts: 38
Joined: 28. October 2007 17:29

Re: Deny all traffic ?

Postby Izzy » 08. December 2009 10:57

Missing support info - what XAMPP version and which Windows OS?
So assuming latest stable XAMPP version and Windows Vista.
fyndler wrote:Is it possible to make something to deny anyone for visiting my website ?
Try this:
Create a file in your text editor and add these lines at the very top
Code: Select all
Order deny,allow
Deny from all
Allow from localhost
Save the file as .htaccess in your web root folder.

I am assuming that your are developing your web site in XAMPP and your web site is in the htdocs folder hence allow from localhost (you).

If not then either drop the Allow line or just add your own IP in place of localhost.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Deny all traffic ?

Postby fyndler » 08. December 2009 11:08

Izzy wrote:Missing support info - what XAMPP version and which Windows OS?
So assuming latest stable XAMPP version and Windows Vista.
fyndler wrote:Is it possible to make something to deny anyone for visiting my website ?
Try this:
Create a file in your text editor and add these lines at the very top
Code: Select all
Order deny,allow
Deny from all
Allow from localhost
Save the file as .htaccess in your web root folder.

I am assuming that your are developing your web site in XAMPP and your web site is in the htdocs folder hence allow from localhost (you).

If not then either drop the Allow line or just add your own IP in place of localhost.



Yeah sorry forgott do add more info

Windows xp

Thanks for the info i try that :)
fyndler
 
Posts: 38
Joined: 28. October 2007 17:29


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 64 guests